slick-table 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +17 -17
- package/dist/index.es.js +900 -900
- package/dist/types/features/column-filters/ui/ColumnFilters.d.ts +2 -10
- package/dist/types/features/column-filters/ui/ColumnFilters.d.ts.map +1 -1
- package/dist/types/features/context-menu/ui/ContextMenu.d.ts +1 -6
- package/dist/types/features/context-menu/ui/ContextMenu.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const We=require("react"),di=require("react-dom");function Cm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const k=Cm(We),ES=Cm(di);function PS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function DS(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var Ta={exports:{}},zs={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Qh;function OS(){if(Qh)return zs;Qh=1;var e=
|
|
9
|
+
*/var Qh;function OS(){if(Qh)return zs;Qh=1;var e=We,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,d,u){var f,p={},y=null,w=null;u!==void 0&&(y=""+u),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(w=d.ref);for(f in d)o.call(d,f)&&!i.hasOwnProperty(f)&&(p[f]=d[f]);if(l&&l.defaultProps)for(f in d=l.defaultProps,d)p[f]===void 0&&(p[f]=d[f]);return{$$typeof:t,type:l,key:y,ref:w,props:p,_owner:r.current}}return zs.Fragment=n,zs.jsx=a,zs.jsxs=a,zs}var Ys={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Jh;function MS(){return Jh||(Jh=1,process.env.NODE_ENV!=="production"&&function(){var e=
|
|
17
|
+
*/var Jh;function MS(){return Jh||(Jh=1,process.env.NODE_ENV!=="production"&&function(){var e=We,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),b=Symbol.iterator,g="@@iterator";function v(U){if(U===null||typeof U!="object")return null;var pe=b&&U[b]||U[g];return typeof pe=="function"?pe:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(U){{for(var pe=arguments.length,we=new Array(pe>1?pe-1:0),Ne=1;Ne<pe;Ne++)we[Ne-1]=arguments[Ne];x("error",U,we)}}function x(U,pe,we){{var Ne=T.ReactDebugCurrentFrame,Ye=Ne.getStackAddendum();Ye!==""&&(pe+="%s",we=we.concat([Ye]));var Je=we.map(function(Ze){return String(Ze)});Je.unshift("Warning: "+pe),Function.prototype.apply.call(console[U],console,Je)}}var S=!1,C=!1,D=!1,A=!1,F=!1,z;z=Symbol.for("react.module.reference");function R(U){return!!(typeof U=="string"||typeof U=="function"||U===o||U===i||F||U===r||U===u||U===f||A||U===w||S||C||D||typeof U=="object"&&U!==null&&(U.$$typeof===y||U.$$typeof===p||U.$$typeof===a||U.$$typeof===l||U.$$typeof===d||U.$$typeof===z||U.getModuleId!==void 0))}function $(U,pe,we){var Ne=U.displayName;if(Ne)return Ne;var Ye=pe.displayName||pe.name||"";return Ye!==""?we+"("+Ye+")":we}function K(U){return U.displayName||"Context"}function X(U){if(U==null)return null;if(typeof U.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof U=="function")return U.displayName||U.name||null;if(typeof U=="string")return U;switch(U){case o:return"Fragment";case n:return"Portal";case i:return"Profiler";case r:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof U=="object")switch(U.$$typeof){case l:var pe=U;return K(pe)+".Consumer";case a:var we=U;return K(we._context)+".Provider";case d:return $(U,U.render,"ForwardRef");case p:var Ne=U.displayName||null;return Ne!==null?Ne:X(U.type)||"Memo";case y:{var Ye=U,Je=Ye._payload,Ze=Ye._init;try{return X(Ze(Je))}catch{return null}}}return null}var q=Object.assign,Y=0,H,ae,N,M,V,W,ne;function oe(){}oe.__reactDisabledLog=!0;function se(){{if(Y===0){H=console.log,ae=console.info,N=console.warn,M=console.error,V=console.group,W=console.groupCollapsed,ne=console.groupEnd;var U={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:U,log:U,warn:U,error:U,group:U,groupCollapsed:U,groupEnd:U})}Y++}}function j(){{if(Y--,Y===0){var U={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:q({},U,{value:H}),info:q({},U,{value:ae}),warn:q({},U,{value:N}),error:q({},U,{value:M}),group:q({},U,{value:V}),groupCollapsed:q({},U,{value:W}),groupEnd:q({},U,{value:ne})})}Y<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=T.ReactCurrentDispatcher,ee;function te(U,pe,we){{if(ee===void 0)try{throw Error()}catch(Ye){var Ne=Ye.stack.trim().match(/\n( *(at )?)/);ee=Ne&&Ne[1]||""}return`
|
|
18
18
|
`+ee+U}}var ce=!1,ie;{var he=typeof WeakMap=="function"?WeakMap:Map;ie=new he}function B(U,pe){if(!U||ce)return"";{var we=ie.get(U);if(we!==void 0)return we}var Ne;ce=!0;var Ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Je;Je=J.current,J.current=null,se();try{if(pe){var Ze=function(){throw Error()};if(Object.defineProperty(Ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ze,[])}catch(fn){Ne=fn}Reflect.construct(U,[],Ze)}else{try{Ze.call()}catch(fn){Ne=fn}U.call(Ze.prototype)}}else{try{throw Error()}catch(fn){Ne=fn}U()}}catch(fn){if(fn&&Ne&&typeof fn.stack=="string"){for(var Ge=fn.stack.split(`
|
|
19
19
|
`),Ut=Ne.stack.split(`
|
|
20
20
|
`),At=Ge.length-1,Bt=Ut.length-1;At>=1&&Bt>=0&&Ge[At]!==Ut[Bt];)Bt--;for(;At>=1&&Bt>=0;At--,Bt--)if(Ge[At]!==Ut[Bt]){if(At!==1||Bt!==1)do if(At--,Bt--,Bt<0||Ge[At]!==Ut[Bt]){var en=`
|
|
21
|
-
`+Ge[At].replace(" at new "," at ");return U.displayName&&en.includes("<anonymous>")&&(en=en.replace("<anonymous>",U.displayName)),typeof U=="function"&&ie.set(U,en),en}while(At>=1&&Bt>=0);break}}}finally{ce=!1,J.current=Je,j(),Error.prepareStackTrace=Ye}var jn=U?U.displayName||U.name:"",ho=jn?te(jn):"";return typeof U=="function"&&ie.set(U,ho),ho}function re(U,pe,we){return B(U,!1)}function Q(U){var pe=U.prototype;return!!(pe&&pe.isReactComponent)}function fe(U,pe,we){if(U==null)return"";if(typeof U=="function")return B(U,Q(U));if(typeof U=="string")return te(U);switch(U){case u:return te("Suspense");case f:return te("SuspenseList")}if(typeof U=="object")switch(U.$$typeof){case d:return re(U.render);case p:return fe(U.type,pe,we);case y:{var Ne=U,Ye=Ne._payload,Je=Ne._init;try{return fe(Je(Ye),pe,we)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Ce={},ve=T.ReactDebugCurrentFrame;function xe(U){if(U){var pe=U._owner,we=fe(U.type,U._source,pe?pe.type:null);ve.setExtraStackFrame(we)}else ve.setExtraStackFrame(null)}function $e(U,pe,we,Ne,Ye){{var Je=Function.call.bind(me);for(var Ze in U)if(Je(U,Ze)){var Ge=void 0;try{if(typeof U[Ze]!="function"){var Ut=Error((Ne||"React class")+": "+we+" type `"+Ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof U[Ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ut.name="Invariant Violation",Ut}Ge=U[Ze](pe,Ze,Ne,we,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){Ge=At}Ge&&!(Ge instanceof Error)&&(xe(Ye),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ne||"React class",we,Ze,typeof Ge),xe(null)),Ge instanceof Error&&!(Ge.message in Ce)&&(Ce[Ge.message]=!0,xe(Ye),P("Failed %s type: %s",we,Ge.message),xe(null))}}}var Ae=Array.isArray;function rt(U){return Ae(U)}function Pe(U){{var pe=typeof Symbol=="function"&&Symbol.toStringTag,we=pe&&U[Symbol.toStringTag]||U.constructor.name||"Object";return we}}function ft(U){try{return Kt(U),!1}catch{return!0}}function Kt(U){return""+U}function st(U){if(ft(U))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pe(U)),Kt(U)}var Yt=T.ReactCurrentOwner,Xt={key:!0,ref:!0,__self:!0,__source:!0},on,Ue;function tt(U){if(me.call(U,"ref")){var pe=Object.getOwnPropertyDescriptor(U,"ref").get;if(pe&&pe.isReactWarning)return!1}return U.ref!==void 0}function Mn(U){if(me.call(U,"key")){var pe=Object.getOwnPropertyDescriptor(U,"key").get;if(pe&&pe.isReactWarning)return!1}return U.key!==void 0}function hn(U,pe){typeof U.ref=="string"&&Yt.current}function Me(U,pe){{var we=function(){on||(on=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};we.isReactWarning=!0,Object.defineProperty(U,"key",{get:we,configurable:!0})}}function
|
|
21
|
+
`+Ge[At].replace(" at new "," at ");return U.displayName&&en.includes("<anonymous>")&&(en=en.replace("<anonymous>",U.displayName)),typeof U=="function"&&ie.set(U,en),en}while(At>=1&&Bt>=0);break}}}finally{ce=!1,J.current=Je,j(),Error.prepareStackTrace=Ye}var jn=U?U.displayName||U.name:"",ho=jn?te(jn):"";return typeof U=="function"&&ie.set(U,ho),ho}function re(U,pe,we){return B(U,!1)}function Q(U){var pe=U.prototype;return!!(pe&&pe.isReactComponent)}function fe(U,pe,we){if(U==null)return"";if(typeof U=="function")return B(U,Q(U));if(typeof U=="string")return te(U);switch(U){case u:return te("Suspense");case f:return te("SuspenseList")}if(typeof U=="object")switch(U.$$typeof){case d:return re(U.render);case p:return fe(U.type,pe,we);case y:{var Ne=U,Ye=Ne._payload,Je=Ne._init;try{return fe(Je(Ye),pe,we)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Ce={},ve=T.ReactDebugCurrentFrame;function xe(U){if(U){var pe=U._owner,we=fe(U.type,U._source,pe?pe.type:null);ve.setExtraStackFrame(we)}else ve.setExtraStackFrame(null)}function $e(U,pe,we,Ne,Ye){{var Je=Function.call.bind(me);for(var Ze in U)if(Je(U,Ze)){var Ge=void 0;try{if(typeof U[Ze]!="function"){var Ut=Error((Ne||"React class")+": "+we+" type `"+Ze+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof U[Ze]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ut.name="Invariant Violation",Ut}Ge=U[Ze](pe,Ze,Ne,we,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){Ge=At}Ge&&!(Ge instanceof Error)&&(xe(Ye),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ne||"React class",we,Ze,typeof Ge),xe(null)),Ge instanceof Error&&!(Ge.message in Ce)&&(Ce[Ge.message]=!0,xe(Ye),P("Failed %s type: %s",we,Ge.message),xe(null))}}}var Ae=Array.isArray;function rt(U){return Ae(U)}function Pe(U){{var pe=typeof Symbol=="function"&&Symbol.toStringTag,we=pe&&U[Symbol.toStringTag]||U.constructor.name||"Object";return we}}function ft(U){try{return Kt(U),!1}catch{return!0}}function Kt(U){return""+U}function st(U){if(ft(U))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pe(U)),Kt(U)}var Yt=T.ReactCurrentOwner,Xt={key:!0,ref:!0,__self:!0,__source:!0},on,Ue;function tt(U){if(me.call(U,"ref")){var pe=Object.getOwnPropertyDescriptor(U,"ref").get;if(pe&&pe.isReactWarning)return!1}return U.ref!==void 0}function Mn(U){if(me.call(U,"key")){var pe=Object.getOwnPropertyDescriptor(U,"key").get;if(pe&&pe.isReactWarning)return!1}return U.key!==void 0}function hn(U,pe){typeof U.ref=="string"&&Yt.current}function Me(U,pe){{var we=function(){on||(on=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};we.isReactWarning=!0,Object.defineProperty(U,"key",{get:we,configurable:!0})}}function He(U,pe){{var we=function(){Ue||(Ue=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};we.isReactWarning=!0,Object.defineProperty(U,"ref",{get:we,configurable:!0})}}var vt=function(U,pe,we,Ne,Ye,Je,Ze){var Ge={$$typeof:t,type:U,key:pe,ref:we,props:Ze,_owner:Je};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ye}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function ln(U,pe,we,Ne,Ye){{var Je,Ze={},Ge=null,Ut=null;we!==void 0&&(st(we),Ge=""+we),Mn(pe)&&(st(pe.key),Ge=""+pe.key),tt(pe)&&(Ut=pe.ref,hn(pe,Ye));for(Je in pe)me.call(pe,Je)&&!Xt.hasOwnProperty(Je)&&(Ze[Je]=pe[Je]);if(U&&U.defaultProps){var At=U.defaultProps;for(Je in At)Ze[Je]===void 0&&(Ze[Je]=At[Je])}if(Ge||Ut){var Bt=typeof U=="function"?U.displayName||U.name||"Unknown":U;Ge&&Me(Ze,Bt),Ut&&He(Ze,Bt)}return vt(U,Ge,Ut,Ye,Ne,Yt.current,Ze)}}var uo=T.ReactCurrentOwner,pt=T.ReactDebugCurrentFrame;function Qt(U){if(U){var pe=U._owner,we=fe(U.type,U._source,pe?pe.type:null);pt.setExtraStackFrame(we)}else pt.setExtraStackFrame(null)}var vn;vn=!1;function Jt(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function Wr(){{if(uo.current){var U=X(uo.current.type);if(U)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+U+"`."}return""}}function Br(U){return""}var Re={};function yc(U){{var pe=Wr();if(!pe){var we=typeof U=="string"?U:U.displayName||U.name;we&&(pe=`
|
|
24
24
|
|
|
@@ -93,7 +93,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:xo(18,`(${t})`));return
|
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the MIT license found in the
|
|
95
95
|
* LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/var Ff;function Fk(){return Ff||(Ff=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function x(B){return typeof B=="string"||typeof B=="function"||B===o||B===u||B===i||B===r||B===p||B===y||typeof B=="object"&&B!==null&&(B.$$typeof===b||B.$$typeof===w||B.$$typeof===a||B.$$typeof===l||B.$$typeof===f||B.$$typeof===v||B.$$typeof===T||B.$$typeof===P||B.$$typeof===g)}function S(B){if(typeof B=="object"&&B!==null){var re=B.$$typeof;switch(re){case t:var Q=B.type;switch(Q){case d:case u:case o:case i:case r:case p:return Q;default:var fe=Q&&Q.$$typeof;switch(fe){case l:case f:case b:case w:case a:return fe;default:return re}}case n:return re}}}var C=d,D=u,A=l,F=a,z=t,R=f,$=o,K=b,X=w,q=n,Y=i,H=r,ae=p,N=!1;function M(B){return N||(N=!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.")),V(B)||S(B)===d}function V(B){return S(B)===u}function W(B){return S(B)===l}function ne(B){return S(B)===a}function oe(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function se(B){return S(B)===f}function j(B){return S(B)===o}function J(B){return S(B)===b}function ee(B){return S(B)===w}function te(B){return S(B)===n}function ce(B){return S(B)===i}function ie(B){return S(B)===r}function he(B){return S(B)===p}St.AsyncMode=C,St.ConcurrentMode=D,St.ContextConsumer=A,St.ContextProvider=F,St.Element=z,St.ForwardRef=R,St.Fragment=$,St.Lazy=K,St.Memo=X,St.Portal=q,St.Profiler=Y,St.StrictMode=H,St.Suspense=ae,St.isAsyncMode=M,St.isConcurrentMode=V,St.isContextConsumer=W,St.isContextProvider=ne,St.isElement=oe,St.isForwardRef=se,St.isFragment=j,St.isLazy=J,St.isMemo=ee,St.isPortal=te,St.isProfiler=ce,St.isStrictMode=ie,St.isSuspense=he,St.isValidElementType=x,St.typeOf=S}()),St}var Lf;function Lk(){return Lf||(Lf=1,process.env.NODE_ENV==="production"?Ia.exports=Ak():Ia.exports=Fk()),Ia.exports}var Kc,$f;function $k(){if($f)return Kc;$f=1;var e=Lk(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=o,i[e.Memo]=r;function a(b){return e.isMemo(b)?r:i[b.$$typeof]||t}var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function w(b,g,v){if(typeof g!="string"){if(y){var T=p(g);T&&T!==y&&w(b,T,v)}var P=d(g);u&&(P=P.concat(u(g)));for(var x=a(b),S=a(g),C=0;C<P.length;++C){var D=P[C];if(!n[D]&&!(v&&v[D])&&!(S&&S[D])&&!(x&&x[D])){var A=f(g,D);try{l(b,D,A)}catch{}}}}return b}return Kc=w,Kc}$k();var Vk=!0;function zg(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var Ru=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||Vk===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},Tu=function(t,n,o){Ru(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+r:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function jk(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Wk={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},Bk=/[A-Z]|^ms/g,Hk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yg=function(t){return t.charCodeAt(1)===45},Vf=function(t){return t!=null&&typeof t!="boolean"},Xc=Bg(function(e){return Yg(e)?e:e.replace(Bk,"-$&").toLowerCase()}),jf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Hk,function(o,r,i){return yo={name:r,styles:i,next:yo},r})}return Wk[t]!==1&&!Yg(t)&&typeof n=="number"&&n!==0?n+"px":n};function Oi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return yo={name:r.name,styles:r.styles,next:yo},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)yo={name:a.name,styles:a.styles,next:yo},a=a.next;var l=i.styles+";";return l}return zk(e,t,n)}case"function":{if(e!==void 0){var d=yo,u=n(e);return yo=d,Oi(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function zk(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Oi(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?o+=i+"{"+t[l]+"}":Vf(l)&&(o+=Xc(i)+":"+jf(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Vf(a[d])&&(o+=Xc(i)+":"+jf(i,a[d])+";");else{var u=Oi(e,t,a);switch(i){case"animation":case"animationName":{o+=Xc(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Wf=/label:\s*([^\s;{]+)\s*(;|$)/g,yo;function na(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";yo=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Oi(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Oi(n,t,e[l]),o){var d=i;r+=d[l]}Wf.lastIndex=0;for(var u="",f;(f=Wf.exec(r))!==null;)u+="-"+f[1];var p=jk(r)+u;return{name:p,styles:r,next:yo}}var Yk=function(t){return t()},Ug=k.useInsertionEffect?k.useInsertionEffect:!1,qg=Ug||Yk,Bf=Ug||k.useLayoutEffect,Gg=k.createContext(typeof HTMLElement<"u"?Nk({key:"css"}):null);Gg.Provider;var ku=function(t){return He.forwardRef(function(n,o){var r=He.useContext(Gg);return t(n,r,o)})},Kl=k.createContext({}),Eu={}.hasOwnProperty,Id="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Uk=function(t,n){var o={};for(var r in n)Eu.call(n,r)&&(o[r]=n[r]);return o[Id]=t,o},qk=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return Ru(n,o,r),qg(function(){return Tu(n,o,r)}),null},Gk=ku(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[Id],i=[o],a="";typeof e.className=="string"?a=zg(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=na(i,void 0,k.useContext(Kl));a+=t.key+"-"+l.name;var d={};for(var u in e)Eu.call(e,u)&&u!=="css"&&u!==Id&&(d[u]=e[u]);return d.className=a,n&&(d.ref=n),k.createElement(k.Fragment,null,k.createElement(qk,{cache:t,serialized:l,isStringTag:typeof r=="string"}),k.createElement(r,d))}),Kk=Gk,Hf=function(t,n){var o=arguments;if(n==null||!Eu.call(n,"css"))return k.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=Kk,i[1]=Uk(t,n);for(var a=2;a<r;a++)i[a]=o[a];return k.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Hf||(Hf={}));var Xk=ku(function(e,t){var n=e.styles,o=na([n],void 0,k.useContext(Kl)),r=k.useRef();return Bf(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,d=document.querySelector('style[data-emotion="'+i+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",i),a.hydrate([d])),r.current=[a,l],function(){a.flush()}},[t]),Bf(function(){var i=r.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(o.next!==void 0&&Tu(t,o.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});function Zk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return na(t)}function Xl(){var e=Zk.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Qk=/^((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)-.*))$/,Jk=Bg(function(e){return Qk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),eE=Jk,tE=function(t){return t!=="theme"},zf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?eE:tE},Yf=function(t,n,o){var r;if(n){var i=n.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},nE=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return Ru(n,o,r),qg(function(){return Tu(n,o,r)}),null},oE=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=Yf(t,n,o),d=l||zf(r),u=!d("as");return function(){var f=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var y=f[0];p.push(y[0]);for(var w=f.length,b=1;b<w;b++)p.push(f[b],y[b])}var g=ku(function(v,T,P){var x=u&&v.as||r,S="",C=[],D=v;if(v.theme==null){D={};for(var A in v)D[A]=v[A];D.theme=k.useContext(Kl)}typeof v.className=="string"?S=zg(T.registered,C,v.className):v.className!=null&&(S=v.className+" ");var F=na(p.concat(C),T.registered,D);S+=T.key+"-"+F.name,a!==void 0&&(S+=" "+a);var z=u&&l===void 0?zf(x):d,R={};for(var $ in v)u&&$==="as"||z($)&&(R[$]=v[$]);return R.className=S,P&&(R.ref=P),k.createElement(k.Fragment,null,k.createElement(nE,{cache:T,serialized:F,isStringTag:typeof x=="string"}),k.createElement(x,R))});return g.displayName=i!==void 0?i:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=r,g.__emotion_styles=p,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(v,T){var P=e(v,Z({},n,T,{shouldForwardProp:Yf(g,T,!0)}));return P.apply(void 0,p)},g}},rE=["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"],Nd=oE.bind(null);rE.forEach(function(e){Nd[e]=Nd(e)});function sE(e){return e==null||Object.keys(e).length===0}function Kg(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(sE(r)?n:r):t;return O.jsx(Xk,{styles:o})}process.env.NODE_ENV!=="production"&&(Kg.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
96
|
+
*/var Ff;function Fk(){return Ff||(Ff=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function x(B){return typeof B=="string"||typeof B=="function"||B===o||B===u||B===i||B===r||B===p||B===y||typeof B=="object"&&B!==null&&(B.$$typeof===b||B.$$typeof===w||B.$$typeof===a||B.$$typeof===l||B.$$typeof===f||B.$$typeof===v||B.$$typeof===T||B.$$typeof===P||B.$$typeof===g)}function S(B){if(typeof B=="object"&&B!==null){var re=B.$$typeof;switch(re){case t:var Q=B.type;switch(Q){case d:case u:case o:case i:case r:case p:return Q;default:var fe=Q&&Q.$$typeof;switch(fe){case l:case f:case b:case w:case a:return fe;default:return re}}case n:return re}}}var C=d,D=u,A=l,F=a,z=t,R=f,$=o,K=b,X=w,q=n,Y=i,H=r,ae=p,N=!1;function M(B){return N||(N=!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.")),V(B)||S(B)===d}function V(B){return S(B)===u}function W(B){return S(B)===l}function ne(B){return S(B)===a}function oe(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function se(B){return S(B)===f}function j(B){return S(B)===o}function J(B){return S(B)===b}function ee(B){return S(B)===w}function te(B){return S(B)===n}function ce(B){return S(B)===i}function ie(B){return S(B)===r}function he(B){return S(B)===p}St.AsyncMode=C,St.ConcurrentMode=D,St.ContextConsumer=A,St.ContextProvider=F,St.Element=z,St.ForwardRef=R,St.Fragment=$,St.Lazy=K,St.Memo=X,St.Portal=q,St.Profiler=Y,St.StrictMode=H,St.Suspense=ae,St.isAsyncMode=M,St.isConcurrentMode=V,St.isContextConsumer=W,St.isContextProvider=ne,St.isElement=oe,St.isForwardRef=se,St.isFragment=j,St.isLazy=J,St.isMemo=ee,St.isPortal=te,St.isProfiler=ce,St.isStrictMode=ie,St.isSuspense=he,St.isValidElementType=x,St.typeOf=S}()),St}var Lf;function Lk(){return Lf||(Lf=1,process.env.NODE_ENV==="production"?Ia.exports=Ak():Ia.exports=Fk()),Ia.exports}var Kc,$f;function $k(){if($f)return Kc;$f=1;var e=Lk(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=o,i[e.Memo]=r;function a(b){return e.isMemo(b)?r:i[b.$$typeof]||t}var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function w(b,g,v){if(typeof g!="string"){if(y){var T=p(g);T&&T!==y&&w(b,T,v)}var P=d(g);u&&(P=P.concat(u(g)));for(var x=a(b),S=a(g),C=0;C<P.length;++C){var D=P[C];if(!n[D]&&!(v&&v[D])&&!(S&&S[D])&&!(x&&x[D])){var A=f(g,D);try{l(b,D,A)}catch{}}}}return b}return Kc=w,Kc}$k();var Vk=!0;function zg(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var Ru=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||Vk===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},Tu=function(t,n,o){Ru(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+r:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function jk(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Wk={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},Bk=/[A-Z]|^ms/g,Hk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yg=function(t){return t.charCodeAt(1)===45},Vf=function(t){return t!=null&&typeof t!="boolean"},Xc=Bg(function(e){return Yg(e)?e:e.replace(Bk,"-$&").toLowerCase()}),jf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Hk,function(o,r,i){return yo={name:r,styles:i,next:yo},r})}return Wk[t]!==1&&!Yg(t)&&typeof n=="number"&&n!==0?n+"px":n};function Oi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return yo={name:r.name,styles:r.styles,next:yo},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)yo={name:a.name,styles:a.styles,next:yo},a=a.next;var l=i.styles+";";return l}return zk(e,t,n)}case"function":{if(e!==void 0){var d=yo,u=n(e);return yo=d,Oi(e,t,u)}break}}var f=n;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function zk(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Oi(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?o+=i+"{"+t[l]+"}":Vf(l)&&(o+=Xc(i)+":"+jf(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Vf(a[d])&&(o+=Xc(i)+":"+jf(i,a[d])+";");else{var u=Oi(e,t,a);switch(i){case"animation":case"animationName":{o+=Xc(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Wf=/label:\s*([^\s;{]+)\s*(;|$)/g,yo;function na(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";yo=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Oi(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Oi(n,t,e[l]),o){var d=i;r+=d[l]}Wf.lastIndex=0;for(var u="",f;(f=Wf.exec(r))!==null;)u+="-"+f[1];var p=jk(r)+u;return{name:p,styles:r,next:yo}}var Yk=function(t){return t()},Ug=k.useInsertionEffect?k.useInsertionEffect:!1,qg=Ug||Yk,Bf=Ug||k.useLayoutEffect,Gg=k.createContext(typeof HTMLElement<"u"?Nk({key:"css"}):null);Gg.Provider;var ku=function(t){return We.forwardRef(function(n,o){var r=We.useContext(Gg);return t(n,r,o)})},Kl=k.createContext({}),Eu={}.hasOwnProperty,Id="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Uk=function(t,n){var o={};for(var r in n)Eu.call(n,r)&&(o[r]=n[r]);return o[Id]=t,o},qk=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return Ru(n,o,r),qg(function(){return Tu(n,o,r)}),null},Gk=ku(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[Id],i=[o],a="";typeof e.className=="string"?a=zg(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=na(i,void 0,k.useContext(Kl));a+=t.key+"-"+l.name;var d={};for(var u in e)Eu.call(e,u)&&u!=="css"&&u!==Id&&(d[u]=e[u]);return d.className=a,n&&(d.ref=n),k.createElement(k.Fragment,null,k.createElement(qk,{cache:t,serialized:l,isStringTag:typeof r=="string"}),k.createElement(r,d))}),Kk=Gk,Hf=function(t,n){var o=arguments;if(n==null||!Eu.call(n,"css"))return k.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=Kk,i[1]=Uk(t,n);for(var a=2;a<r;a++)i[a]=o[a];return k.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Hf||(Hf={}));var Xk=ku(function(e,t){var n=e.styles,o=na([n],void 0,k.useContext(Kl)),r=k.useRef();return Bf(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,d=document.querySelector('style[data-emotion="'+i+" "+o.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",i),a.hydrate([d])),r.current=[a,l],function(){a.flush()}},[t]),Bf(function(){var i=r.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(o.next!==void 0&&Tu(t,o.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",o,a,!1)},[t,o.name]),null});function Zk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return na(t)}function Xl(){var e=Zk.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Qk=/^((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)-.*))$/,Jk=Bg(function(e){return Qk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),eE=Jk,tE=function(t){return t!=="theme"},zf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?eE:tE},Yf=function(t,n,o){var r;if(n){var i=n.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},nE=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return Ru(n,o,r),qg(function(){return Tu(n,o,r)}),null},oE=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=Yf(t,n,o),d=l||zf(r),u=!d("as");return function(){var f=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var y=f[0];p.push(y[0]);for(var w=f.length,b=1;b<w;b++)p.push(f[b],y[b])}var g=ku(function(v,T,P){var x=u&&v.as||r,S="",C=[],D=v;if(v.theme==null){D={};for(var A in v)D[A]=v[A];D.theme=k.useContext(Kl)}typeof v.className=="string"?S=zg(T.registered,C,v.className):v.className!=null&&(S=v.className+" ");var F=na(p.concat(C),T.registered,D);S+=T.key+"-"+F.name,a!==void 0&&(S+=" "+a);var z=u&&l===void 0?zf(x):d,R={};for(var $ in v)u&&$==="as"||z($)&&(R[$]=v[$]);return R.className=S,P&&(R.ref=P),k.createElement(k.Fragment,null,k.createElement(nE,{cache:T,serialized:F,isStringTag:typeof x=="string"}),k.createElement(x,R))});return g.displayName=i!==void 0?i:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=r,g.__emotion_styles=p,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(v,T){var P=e(v,Z({},n,T,{shouldForwardProp:Yf(g,T,!0)}));return P.apply(void 0,p)},g}},rE=["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"],Nd=oE.bind(null);rE.forEach(function(e){Nd[e]=Nd(e)});function sE(e){return e==null||Object.keys(e).length===0}function Kg(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(sE(r)?n:r):t;return O.jsx(Xk,{styles:o})}process.env.NODE_ENV!=="production"&&(Kg.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
97
97
|
* @mui/styled-engine v6.4.11
|
|
98
98
|
*
|
|
99
99
|
* @license MIT
|
|
@@ -129,7 +129,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
129
129
|
|
|
130
130
|
export default theme;`}function Fd(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:d,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":xo(20));const f=Ou(i),p=Pu(e);let y=gn(p,{mixins:KE(p.breakpoints,o),palette:f,shadows:tP.slice(),typography:ZE(f,l),transitions:sP(a),zIndex:{...iP}});if(y=gn(y,u),y=t.reduce((w,b)=>gn(w,b),y),process.env.NODE_ENV!=="production"){const w=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(g,v)=>{let T;for(T in g){const P=g[T];if(w.includes(T)&&Object.keys(P).length>0){if(process.env.NODE_ENV!=="production"){const x=Oe("",T);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(g,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:P}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
131
131
|
`))}g[T]={}}}};Object.keys(y.components).forEach(g=>{const v=y.components[g].styleOverrides;v&&g.startsWith("Mui")&&b(v,g)})}return y.unstable_sxConfig={...ea,...u?.unstable_sxConfig},y.unstable_sx=function(b){return Nr({sx:b,theme:this})},y.toRuntimeSource=cy,y}function Ld(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const lP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ld(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function dy(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function uy(e){return e==="dark"?lP:[]}function cP(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=Ou(t);return{palette:i,opacity:{...dy(i.mode),...n},overlays:o||uy(i.mode),...r}}function dP(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const uP=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],hP=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return uP(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function fP(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ue(e,t,n){!e[t]&&n&&(e[t]=n)}function hi(e){return!e||!e.startsWith("hsl")?e:iy(e)}function Lo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ui(hi(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
132
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function pP(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fo=e=>{try{return e()}catch{}},mP=(e="mui")=>AE(e);function Qc(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=cP({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=Fd({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...dy(r),...t?.opacity},overlays:t?.overlays||uy(r)},a}function gP(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=dP,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=mP(i),{[p]:w,light:b,dark:g,...v}=n,T={...v};let P=w;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(P=!0),!P)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:xo(21,p));const x=Qc(T,P,u,p);b&&!T.light&&Qc(T,b,void 0,"light"),g&&!T.dark&&Qc(T,g,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:T,font:{...GE(x.typography),...x.font},spacing:pP(u.spacing)};Object.keys(S.colorSchemes).forEach(z=>{const R=S.colorSchemes[z].palette,$=K=>{const X=K.split("-"),q=X[1],Y=X[2];return y(K,R[q][Y])};if(R.mode==="light"&&(ue(R.common,"background","#fff"),ue(R.common,"onBackground","#000")),R.mode==="dark"&&(ue(R.common,"background","#000"),ue(R.common,"onBackground","#fff")),fP(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",Et(R.error.light,.6)),ue(R.Alert,"infoColor",Et(R.info.light,.6)),ue(R.Alert,"successColor",Et(R.success.light,.6)),ue(R.Alert,"warningColor",Et(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-main")),ue(R.Alert,"infoFilledBg",$("palette-info-main")),ue(R.Alert,"successFilledBg",$("palette-success-main")),ue(R.Alert,"warningFilledBg",$("palette-warning-main")),ue(R.Alert,"errorFilledColor",fo(()=>R.getContrastText(R.error.main))),ue(R.Alert,"infoFilledColor",fo(()=>R.getContrastText(R.info.main))),ue(R.Alert,"successFilledColor",fo(()=>R.getContrastText(R.success.main))),ue(R.Alert,"warningFilledColor",fo(()=>R.getContrastText(R.warning.main))),ue(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Pt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-100")),ue(R.Avatar,"defaultBg",$("palette-grey-400")),ue(R.Button,"inheritContainedBg",$("palette-grey-300")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ue(R.Chip,"defaultBorder",$("palette-grey-400")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-700")),ue(R.Chip,"defaultIconColor",$("palette-grey-700")),ue(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(R.LinearProgress,"primaryBg",Pt(R.primary.main,.62)),ue(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.62)),ue(R.LinearProgress,"errorBg",Pt(R.error.main,.62)),ue(R.LinearProgress,"infoBg",Pt(R.info.main,.62)),ue(R.LinearProgress,"successBg",Pt(R.success.main,.62)),ue(R.LinearProgress,"warningBg",Pt(R.warning.main,.62)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ue(R.Slider,"primaryTrack",Pt(R.primary.main,.62)),ue(R.Slider,"secondaryTrack",Pt(R.secondary.main,.62)),ue(R.Slider,"errorTrack",Pt(R.error.main,.62)),ue(R.Slider,"infoTrack",Pt(R.info.main,.62)),ue(R.Slider,"successTrack",Pt(R.success.main,.62)),ue(R.Slider,"warningTrack",Pt(R.warning.main,.62));const K=Aa(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",Aa(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-400")),ue(R.StepContent,"border",$("palette-grey-400")),ue(R.Switch,"defaultColor",$("palette-common-white")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-100")),ue(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.62)),ue(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.62)),ue(R.Switch,"errorDisabledColor",Pt(R.error.main,.62)),ue(R.Switch,"infoDisabledColor",Pt(R.info.main,.62)),ue(R.Switch,"successDisabledColor",Pt(R.success.main,.62)),ue(R.Switch,"warningDisabledColor",Pt(R.warning.main,.62)),ue(R.TableCell,"border",Pt(Na(R.divider,1),.88)),ue(R.Tooltip,"bg",Na(R.grey[700],.92))}if(R.mode==="dark"){ue(R.Alert,"errorColor",Pt(R.error.light,.6)),ue(R.Alert,"infoColor",Pt(R.info.light,.6)),ue(R.Alert,"successColor",Pt(R.success.light,.6)),ue(R.Alert,"warningColor",Pt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-dark")),ue(R.Alert,"infoFilledBg",$("palette-info-dark")),ue(R.Alert,"successFilledBg",$("palette-success-dark")),ue(R.Alert,"warningFilledBg",$("palette-warning-dark")),ue(R.Alert,"errorFilledColor",fo(()=>R.getContrastText(R.error.dark))),ue(R.Alert,"infoFilledColor",fo(()=>R.getContrastText(R.info.dark))),ue(R.Alert,"successFilledColor",fo(()=>R.getContrastText(R.success.dark))),ue(R.Alert,"warningFilledColor",fo(()=>R.getContrastText(R.warning.dark))),ue(R.Alert,"errorStandardBg",Et(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Et(R.info.light,.9)),ue(R.Alert,"successStandardBg",Et(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Et(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-900")),ue(R.AppBar,"darkBg",$("palette-background-paper")),ue(R.AppBar,"darkColor",$("palette-text-primary")),ue(R.Avatar,"defaultBg",$("palette-grey-600")),ue(R.Button,"inheritContainedBg",$("palette-grey-800")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),ue(R.Chip,"defaultBorder",$("palette-grey-700")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-300")),ue(R.Chip,"defaultIconColor",$("palette-grey-300")),ue(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(R.LinearProgress,"primaryBg",Et(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",Et(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",Et(R.error.main,.5)),ue(R.LinearProgress,"infoBg",Et(R.info.main,.5)),ue(R.LinearProgress,"successBg",Et(R.success.main,.5)),ue(R.LinearProgress,"warningBg",Et(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",Et(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",Et(R.secondary.main,.5)),ue(R.Slider,"errorTrack",Et(R.error.main,.5)),ue(R.Slider,"infoTrack",Et(R.info.main,.5)),ue(R.Slider,"successTrack",Et(R.success.main,.5)),ue(R.Slider,"warningTrack",Et(R.warning.main,.5));const K=Aa(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",Aa(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-600")),ue(R.StepContent,"border",$("palette-grey-600")),ue(R.Switch,"defaultColor",$("palette-grey-300")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-600")),ue(R.Switch,"primaryDisabledColor",Et(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",Et(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",Et(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",Et(R.info.main,.55)),ue(R.Switch,"successDisabledColor",Et(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",Et(R.warning.main,.55)),ue(R.TableCell,"border",Et(Na(R.divider,1),.68)),ue(R.Tooltip,"bg",Na(R.grey[700],.92))}Lo(R.background,"default"),Lo(R.background,"paper"),Lo(R.common,"background"),Lo(R.common,"onBackground"),Lo(R,"divider"),Object.keys(R).forEach(K=>{const X=R[K];X&&typeof X=="object"&&(X.main&&ue(R[K],"mainChannel",ui(hi(X.main))),X.light&&ue(R[K],"lightChannel",ui(hi(X.light))),X.dark&&ue(R[K],"darkChannel",ui(hi(X.dark))),X.contrastText&&ue(R[K],"contrastTextChannel",ui(hi(X.contrastText))),K==="text"&&(Lo(R[K],"primary"),Lo(R[K],"secondary")),K==="action"&&(X.active&&Lo(R[K],"active"),X.selected&&Lo(R[K],"selected")))})}),S=t.reduce((z,R)=>gn(z,R),S);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:hP(S)},{vars:D,generateThemeVars:A,generateStyleSheets:F}=$E(S,C);return S.vars=D,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([z,R])=>{S[z]=R}),S.generateThemeVars=A,S.generateStyleSheets=F,S.generateSpacing=function(){return Zg(u.spacing,wu(this))},S.getColorSchemeSelector=VE(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...ea,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Nr({sx:R,theme:this})},S.toRuntimeSource=cy,S}function np(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ou({...n===!0?{}:n.palette,mode:t})})}function hy(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",d=r?.[l],u={...r,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Fd(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Fd({...e,palette:f},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},np(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},np(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),gP({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Jl=hy(),oa="$$material";function Ns(){const e=Zl(Jl);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[oa]||e}function fy(e){return O.jsx(Jg,{...e,defaultTheme:Jl,themeId:oa})}process.env.NODE_ENV!=="production"&&(fy.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function py(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dn=e=>py(e)&&e!=="classes",le=yE({themeId:oa,defaultTheme:Jl,rootShouldForwardProp:Dn});function yP(e){return function(n){return O.jsx(fy,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function vP(){return Ag}const ut=NE;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Xe(e){return IE(e)}function We(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function $d(e,t){return $d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},$d(e,t)}function Mu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$d(e,t)}function bP(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function wP(e,t){e.classList?e.classList.add(t):bP(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function op(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function CP(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=op(e.className,t):e.setAttribute("class",op(e.className&&e.className.baseVal||"",t))}const rp={disabled:!1};var SP=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,_P=process.env.NODE_ENV!=="production"?s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]):null;const hl=He.createContext(null);var my=function(t){return t.scrollTop},fi="unmounted",Tr="exited",kr="entering",as="entered",Vd="exiting",eo=function(e){Mu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,d;return i.appearStatus=null,o.in?l?(d=Tr,i.appearStatus=kr):d=as:o.unmountOnExit||o.mountOnEnter?d=fi:d=Tr,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===fi?{status:Tr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==kr&&a!==as&&(i=kr):(a===kr||a===as)&&(i=Vd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:di.findDOMNode(this);a&&my(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:fi})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,d=this.props.nodeRef?[l]:[di.findDOMNode(this),l],u=d[0],f=d[1],p=this.getTimeouts(),y=l?p.appear:p.enter;if(!r&&!a||rp.disabled){this.safeSetState({status:as},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:kr},function(){i.props.onEntering(u,f),i.onTransitionEnd(y,function(){i.safeSetState({status:as},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:di.findDOMNode(this);if(!i||rp.disabled){this.safeSetState({status:Tr},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Vd},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Tr},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:di.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=d[0],f=d[1];this.props.addEndListener(u,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===fi)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=We(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return He.createElement(hl.Provider,{value:null},typeof a=="function"?a(r,l):He.cloneElement(He.Children.only(a),l))},t}(He.Component);eo.contextType=hl;eo.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=SP;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function ns(){}eo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ns,onEntering:ns,onEntered:ns,onExit:ns,onExiting:ns,onExited:ns};eo.UNMOUNTED=fi;eo.EXITED=Tr;eo.ENTERING=kr;eo.ENTERED=as;eo.EXITING=Vd;var xP=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return wP(t,o)})},Jc=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return CP(t,o)})},Iu=function(e){Mu(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,d)},o.onEntering=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.addClass(f,y,"active"),o.props.onEntering&&o.props.onEntering(l,d)},o.onEntered=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.removeClasses(f,y),o.addClass(f,y,"done"),o.props.onEntered&&o.props.onEntered(l,d)},o.onExit=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var d=o.resolveArguments(l),u=d[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,d){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,d]},o.getClassNames=function(l){var d=o.props.classNames,u=typeof d=="string",f=u&&d?d+"-":"",p=u?""+f+l:d[l],y=u?p+"-active":d[l+"Active"],w=u?p+"-done":d[l+"Done"];return{baseClassName:p,activeClassName:y,doneClassName:w}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],d=this.getClassNames("enter"),u=d.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&my(r),l&&(this.appliedClasses[i][a]=l,xP(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,d=a.active,u=a.done;this.appliedClasses[i]={},l&&Jc(r,l),d&&Jc(r,d),u&&Jc(r,u)},n.render=function(){var r=this.props;r.classNames;var i=We(r,["classNames"]);return He.createElement(eo,Z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(He.Component);Iu.defaultProps={classNames:""};Iu.propTypes=process.env.NODE_ENV!=="production"?Z({},eo.propTypes,{classNames:_P,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function RP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nu(e,t){var n=function(i){return t&&He.isValidElement(i)?t(i):i},o=Object.create(null);return e&&He.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function TP(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var d in t){if(o[d])for(a=0;a<o[d].length;a++){var u=o[d][a];l[o[d][a]]=n(u)}l[d]=n(d)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function Pr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function kP(e,t){return Nu(e.children,function(n){return He.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Pr(n,"appear",e),enter:Pr(n,"enter",e),exit:Pr(n,"exit",e)})})}function EP(e,t,n){var o=Nu(e.children),r=TP(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(He.isValidElement(a)){var l=i in t,d=i in o,u=t[i],f=He.isValidElement(u)&&!u.props.in;d&&(!l||f)?r[i]=He.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Pr(a,"exit",e),enter:Pr(a,"enter",e)}):!d&&l&&!f?r[i]=He.cloneElement(a,{in:!1}):d&&l&&He.isValidElement(u)&&(r[i]=He.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Pr(a,"exit",e),enter:Pr(a,"enter",e)}))}}),r}var PP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},DP={component:"div",childFactory:function(t){return t}},ra=function(e){Mu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(RP(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,l=i.handleExited,d=i.firstRender;return{children:d?kP(r,l):EP(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=Nu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var d=Z({},l.children);return delete d[r.key],{children:d}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=We(r,["component","childFactory"]),d=this.state.contextValue,u=PP(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?He.createElement(hl.Provider,{value:d},u):He.createElement(hl.Provider,{value:d},He.createElement(i,l,u))},t}(He.Component);ra.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ra.defaultProps=DP;const gy=e=>e.scrollTop;function fl(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function jd(e){return`scale(${e}, ${e**2})`}const OP={entering:{opacity:1,transform:jd(1)},entered:{opacity:1,transform:"none"}},ed=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ai=k.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:y,onExiting:w,style:b,timeout:g="auto",TransitionComponent:v=eo,...T}=t,P=Eg(),x=k.useRef(),S=Ns(),C=k.useRef(null),D=at(C,Zi(i),n),A=Y=>H=>{if(Y){const ae=C.current;H===void 0?Y(ae):Y(ae,H)}},F=A(f),z=A((Y,H)=>{gy(Y);const{duration:ae,delay:N,easing:M}=fl({style:b,timeout:g,easing:a},{mode:"enter"});let V;g==="auto"?(V=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=V):V=ae,Y.style.transition=[S.transitions.create("opacity",{duration:V,delay:N}),S.transitions.create("transform",{duration:ed?V:V*.666,delay:N,easing:M})].join(","),d&&d(Y,H)}),R=A(u),$=A(w),K=A(Y=>{const{duration:H,delay:ae,easing:N}=fl({style:b,timeout:g,easing:a},{mode:"exit"});let M;g==="auto"?(M=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=M):M=H,Y.style.transition=[S.transitions.create("opacity",{duration:M,delay:ae}),S.transitions.create("transform",{duration:ed?M:M*.666,delay:ed?ae:ae||M*.333,easing:N})].join(","),Y.style.opacity=0,Y.style.transform=jd(.75),p&&p(Y)}),X=A(y),q=Y=>{g==="auto"&&P.start(x.current||0,Y),o&&o(C.current,Y)};return O.jsx(v,{appear:r,in:l,nodeRef:C,onEnter:z,onEntered:R,onEntering:F,onExit:K,onExited:X,onExiting:$,addEndListener:q,timeout:g==="auto"?null:g,...T,children:(Y,H)=>k.cloneElement(i,{style:{opacity:0,transform:jd(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...OP[Y],...b,...i.props.style},ref:D,...H})})});process.env.NODE_ENV!=="production"&&(Ai.propTypes={addEndListener:s.func,appear:s.bool,children:Xi.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Ai&&(Ai.muiSupportAuto=!0);function MP(e){return Oe("MuiPaper",e)}De("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const IP=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ie(i,MP,r)},NP=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ut(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),As=k.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiPaper"}),r=Ns(),{className:i,component:a="div",elevation:l=1,square:d=!1,variant:u="elevation",...f}=o,p={...o,component:a,elevation:l,square:d,variant:u},y=IP(p);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
132
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function pP(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fo=e=>{try{return e()}catch{}},mP=(e="mui")=>AE(e);function Qc(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=cP({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=Fd({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...dy(r),...t?.opacity},overlays:t?.overlays||uy(r)},a}function gP(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=dP,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=mP(i),{[p]:w,light:b,dark:g,...v}=n,T={...v};let P=w;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(P=!0),!P)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:xo(21,p));const x=Qc(T,P,u,p);b&&!T.light&&Qc(T,b,void 0,"light"),g&&!T.dark&&Qc(T,g,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:T,font:{...GE(x.typography),...x.font},spacing:pP(u.spacing)};Object.keys(S.colorSchemes).forEach(z=>{const R=S.colorSchemes[z].palette,$=K=>{const X=K.split("-"),q=X[1],Y=X[2];return y(K,R[q][Y])};if(R.mode==="light"&&(ue(R.common,"background","#fff"),ue(R.common,"onBackground","#000")),R.mode==="dark"&&(ue(R.common,"background","#000"),ue(R.common,"onBackground","#fff")),fP(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",Et(R.error.light,.6)),ue(R.Alert,"infoColor",Et(R.info.light,.6)),ue(R.Alert,"successColor",Et(R.success.light,.6)),ue(R.Alert,"warningColor",Et(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-main")),ue(R.Alert,"infoFilledBg",$("palette-info-main")),ue(R.Alert,"successFilledBg",$("palette-success-main")),ue(R.Alert,"warningFilledBg",$("palette-warning-main")),ue(R.Alert,"errorFilledColor",fo(()=>R.getContrastText(R.error.main))),ue(R.Alert,"infoFilledColor",fo(()=>R.getContrastText(R.info.main))),ue(R.Alert,"successFilledColor",fo(()=>R.getContrastText(R.success.main))),ue(R.Alert,"warningFilledColor",fo(()=>R.getContrastText(R.warning.main))),ue(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Pt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-100")),ue(R.Avatar,"defaultBg",$("palette-grey-400")),ue(R.Button,"inheritContainedBg",$("palette-grey-300")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ue(R.Chip,"defaultBorder",$("palette-grey-400")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-700")),ue(R.Chip,"defaultIconColor",$("palette-grey-700")),ue(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(R.LinearProgress,"primaryBg",Pt(R.primary.main,.62)),ue(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.62)),ue(R.LinearProgress,"errorBg",Pt(R.error.main,.62)),ue(R.LinearProgress,"infoBg",Pt(R.info.main,.62)),ue(R.LinearProgress,"successBg",Pt(R.success.main,.62)),ue(R.LinearProgress,"warningBg",Pt(R.warning.main,.62)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ue(R.Slider,"primaryTrack",Pt(R.primary.main,.62)),ue(R.Slider,"secondaryTrack",Pt(R.secondary.main,.62)),ue(R.Slider,"errorTrack",Pt(R.error.main,.62)),ue(R.Slider,"infoTrack",Pt(R.info.main,.62)),ue(R.Slider,"successTrack",Pt(R.success.main,.62)),ue(R.Slider,"warningTrack",Pt(R.warning.main,.62));const K=Aa(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",Aa(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-400")),ue(R.StepContent,"border",$("palette-grey-400")),ue(R.Switch,"defaultColor",$("palette-common-white")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-100")),ue(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.62)),ue(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.62)),ue(R.Switch,"errorDisabledColor",Pt(R.error.main,.62)),ue(R.Switch,"infoDisabledColor",Pt(R.info.main,.62)),ue(R.Switch,"successDisabledColor",Pt(R.success.main,.62)),ue(R.Switch,"warningDisabledColor",Pt(R.warning.main,.62)),ue(R.TableCell,"border",Pt(Na(R.divider,1),.88)),ue(R.Tooltip,"bg",Na(R.grey[700],.92))}if(R.mode==="dark"){ue(R.Alert,"errorColor",Pt(R.error.light,.6)),ue(R.Alert,"infoColor",Pt(R.info.light,.6)),ue(R.Alert,"successColor",Pt(R.success.light,.6)),ue(R.Alert,"warningColor",Pt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-dark")),ue(R.Alert,"infoFilledBg",$("palette-info-dark")),ue(R.Alert,"successFilledBg",$("palette-success-dark")),ue(R.Alert,"warningFilledBg",$("palette-warning-dark")),ue(R.Alert,"errorFilledColor",fo(()=>R.getContrastText(R.error.dark))),ue(R.Alert,"infoFilledColor",fo(()=>R.getContrastText(R.info.dark))),ue(R.Alert,"successFilledColor",fo(()=>R.getContrastText(R.success.dark))),ue(R.Alert,"warningFilledColor",fo(()=>R.getContrastText(R.warning.dark))),ue(R.Alert,"errorStandardBg",Et(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Et(R.info.light,.9)),ue(R.Alert,"successStandardBg",Et(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Et(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-900")),ue(R.AppBar,"darkBg",$("palette-background-paper")),ue(R.AppBar,"darkColor",$("palette-text-primary")),ue(R.Avatar,"defaultBg",$("palette-grey-600")),ue(R.Button,"inheritContainedBg",$("palette-grey-800")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),ue(R.Chip,"defaultBorder",$("palette-grey-700")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-300")),ue(R.Chip,"defaultIconColor",$("palette-grey-300")),ue(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(R.LinearProgress,"primaryBg",Et(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",Et(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",Et(R.error.main,.5)),ue(R.LinearProgress,"infoBg",Et(R.info.main,.5)),ue(R.LinearProgress,"successBg",Et(R.success.main,.5)),ue(R.LinearProgress,"warningBg",Et(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",Et(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",Et(R.secondary.main,.5)),ue(R.Slider,"errorTrack",Et(R.error.main,.5)),ue(R.Slider,"infoTrack",Et(R.info.main,.5)),ue(R.Slider,"successTrack",Et(R.success.main,.5)),ue(R.Slider,"warningTrack",Et(R.warning.main,.5));const K=Aa(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",fo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",Aa(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-600")),ue(R.StepContent,"border",$("palette-grey-600")),ue(R.Switch,"defaultColor",$("palette-grey-300")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-600")),ue(R.Switch,"primaryDisabledColor",Et(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",Et(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",Et(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",Et(R.info.main,.55)),ue(R.Switch,"successDisabledColor",Et(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",Et(R.warning.main,.55)),ue(R.TableCell,"border",Et(Na(R.divider,1),.68)),ue(R.Tooltip,"bg",Na(R.grey[700],.92))}Lo(R.background,"default"),Lo(R.background,"paper"),Lo(R.common,"background"),Lo(R.common,"onBackground"),Lo(R,"divider"),Object.keys(R).forEach(K=>{const X=R[K];X&&typeof X=="object"&&(X.main&&ue(R[K],"mainChannel",ui(hi(X.main))),X.light&&ue(R[K],"lightChannel",ui(hi(X.light))),X.dark&&ue(R[K],"darkChannel",ui(hi(X.dark))),X.contrastText&&ue(R[K],"contrastTextChannel",ui(hi(X.contrastText))),K==="text"&&(Lo(R[K],"primary"),Lo(R[K],"secondary")),K==="action"&&(X.active&&Lo(R[K],"active"),X.selected&&Lo(R[K],"selected")))})}),S=t.reduce((z,R)=>gn(z,R),S);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:hP(S)},{vars:D,generateThemeVars:A,generateStyleSheets:F}=$E(S,C);return S.vars=D,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([z,R])=>{S[z]=R}),S.generateThemeVars=A,S.generateStyleSheets=F,S.generateSpacing=function(){return Zg(u.spacing,wu(this))},S.getColorSchemeSelector=VE(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...ea,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Nr({sx:R,theme:this})},S.toRuntimeSource=cy,S}function np(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ou({...n===!0?{}:n.palette,mode:t})})}function hy(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",d=r?.[l],u={...r,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Fd(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Fd({...e,palette:f},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},np(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},np(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),gP({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Jl=hy(),oa="$$material";function Ns(){const e=Zl(Jl);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[oa]||e}function fy(e){return O.jsx(Jg,{...e,defaultTheme:Jl,themeId:oa})}process.env.NODE_ENV!=="production"&&(fy.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function py(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dn=e=>py(e)&&e!=="classes",le=yE({themeId:oa,defaultTheme:Jl,rootShouldForwardProp:Dn});function yP(e){return function(n){return O.jsx(fy,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function vP(){return Ag}const ut=NE;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Xe(e){return IE(e)}function Be(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function $d(e,t){return $d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},$d(e,t)}function Mu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$d(e,t)}function bP(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function wP(e,t){e.classList?e.classList.add(t):bP(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function op(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function CP(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=op(e.className,t):e.setAttribute("class",op(e.className&&e.className.baseVal||"",t))}const rp={disabled:!1};var SP=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,_P=process.env.NODE_ENV!=="production"?s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]):null;const hl=We.createContext(null);var my=function(t){return t.scrollTop},fi="unmounted",Tr="exited",kr="entering",as="entered",Vd="exiting",eo=function(e){Mu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,d;return i.appearStatus=null,o.in?l?(d=Tr,i.appearStatus=kr):d=as:o.unmountOnExit||o.mountOnEnter?d=fi:d=Tr,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===fi?{status:Tr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==kr&&a!==as&&(i=kr):(a===kr||a===as)&&(i=Vd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===kr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:di.findDOMNode(this);a&&my(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:fi})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,d=this.props.nodeRef?[l]:[di.findDOMNode(this),l],u=d[0],f=d[1],p=this.getTimeouts(),y=l?p.appear:p.enter;if(!r&&!a||rp.disabled){this.safeSetState({status:as},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:kr},function(){i.props.onEntering(u,f),i.onTransitionEnd(y,function(){i.safeSetState({status:as},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:di.findDOMNode(this);if(!i||rp.disabled){this.safeSetState({status:Tr},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Vd},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Tr},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:di.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=d[0],f=d[1];this.props.addEndListener(u,f)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===fi)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Be(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return We.createElement(hl.Provider,{value:null},typeof a=="function"?a(r,l):We.cloneElement(We.Children.only(a),l))},t}(We.Component);eo.contextType=hl;eo.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=SP;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function ns(){}eo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ns,onEntering:ns,onEntered:ns,onExit:ns,onExiting:ns,onExited:ns};eo.UNMOUNTED=fi;eo.EXITED=Tr;eo.ENTERING=kr;eo.ENTERED=as;eo.EXITING=Vd;var xP=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return wP(t,o)})},Jc=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return CP(t,o)})},Iu=function(e){Mu(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1];o.removeClasses(f,"exit"),o.addClass(f,p?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,d)},o.onEntering=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.addClass(f,y,"active"),o.props.onEntering&&o.props.onEntering(l,d)},o.onEntered=function(l,d){var u=o.resolveArguments(l,d),f=u[0],p=u[1],y=p?"appear":"enter";o.removeClasses(f,y),o.addClass(f,y,"done"),o.props.onEntered&&o.props.onEntered(l,d)},o.onExit=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var d=o.resolveArguments(l),u=d[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var d=o.resolveArguments(l),u=d[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,d){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,d]},o.getClassNames=function(l){var d=o.props.classNames,u=typeof d=="string",f=u&&d?d+"-":"",p=u?""+f+l:d[l],y=u?p+"-active":d[l+"Active"],w=u?p+"-done":d[l+"Done"];return{baseClassName:p,activeClassName:y,doneClassName:w}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],d=this.getClassNames("enter"),u=d.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&my(r),l&&(this.appliedClasses[i][a]=l,xP(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,d=a.active,u=a.done;this.appliedClasses[i]={},l&&Jc(r,l),d&&Jc(r,d),u&&Jc(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Be(r,["classNames"]);return We.createElement(eo,Z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(We.Component);Iu.defaultProps={classNames:""};Iu.propTypes=process.env.NODE_ENV!=="production"?Z({},eo.propTypes,{classNames:_P,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function RP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nu(e,t){var n=function(i){return t&&We.isValidElement(i)?t(i):i},o=Object.create(null);return e&&We.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function TP(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var d in t){if(o[d])for(a=0;a<o[d].length;a++){var u=o[d][a];l[o[d][a]]=n(u)}l[d]=n(d)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function Pr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function kP(e,t){return Nu(e.children,function(n){return We.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Pr(n,"appear",e),enter:Pr(n,"enter",e),exit:Pr(n,"exit",e)})})}function EP(e,t,n){var o=Nu(e.children),r=TP(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(We.isValidElement(a)){var l=i in t,d=i in o,u=t[i],f=We.isValidElement(u)&&!u.props.in;d&&(!l||f)?r[i]=We.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Pr(a,"exit",e),enter:Pr(a,"enter",e)}):!d&&l&&!f?r[i]=We.cloneElement(a,{in:!1}):d&&l&&We.isValidElement(u)&&(r[i]=We.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Pr(a,"exit",e),enter:Pr(a,"enter",e)}))}}),r}var PP=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},DP={component:"div",childFactory:function(t){return t}},ra=function(e){Mu(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(RP(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,l=i.handleExited,d=i.firstRender;return{children:d?kP(r,l):EP(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=Nu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var d=Z({},l.children);return delete d[r.key],{children:d}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Be(r,["component","childFactory"]),d=this.state.contextValue,u=PP(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?We.createElement(hl.Provider,{value:d},u):We.createElement(hl.Provider,{value:d},We.createElement(i,l,u))},t}(We.Component);ra.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};ra.defaultProps=DP;const gy=e=>e.scrollTop;function fl(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function jd(e){return`scale(${e}, ${e**2})`}const OP={entering:{opacity:1,transform:jd(1)},entered:{opacity:1,transform:"none"}},ed=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ai=k.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:y,onExiting:w,style:b,timeout:g="auto",TransitionComponent:v=eo,...T}=t,P=Eg(),x=k.useRef(),S=Ns(),C=k.useRef(null),D=at(C,Zi(i),n),A=Y=>H=>{if(Y){const ae=C.current;H===void 0?Y(ae):Y(ae,H)}},F=A(f),z=A((Y,H)=>{gy(Y);const{duration:ae,delay:N,easing:M}=fl({style:b,timeout:g,easing:a},{mode:"enter"});let V;g==="auto"?(V=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=V):V=ae,Y.style.transition=[S.transitions.create("opacity",{duration:V,delay:N}),S.transitions.create("transform",{duration:ed?V:V*.666,delay:N,easing:M})].join(","),d&&d(Y,H)}),R=A(u),$=A(w),K=A(Y=>{const{duration:H,delay:ae,easing:N}=fl({style:b,timeout:g,easing:a},{mode:"exit"});let M;g==="auto"?(M=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=M):M=H,Y.style.transition=[S.transitions.create("opacity",{duration:M,delay:ae}),S.transitions.create("transform",{duration:ed?M:M*.666,delay:ed?ae:ae||M*.333,easing:N})].join(","),Y.style.opacity=0,Y.style.transform=jd(.75),p&&p(Y)}),X=A(y),q=Y=>{g==="auto"&&P.start(x.current||0,Y),o&&o(C.current,Y)};return O.jsx(v,{appear:r,in:l,nodeRef:C,onEnter:z,onEntered:R,onEntering:F,onExit:K,onExited:X,onExiting:$,addEndListener:q,timeout:g==="auto"?null:g,...T,children:(Y,H)=>k.cloneElement(i,{style:{opacity:0,transform:jd(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...OP[Y],...b,...i.props.style},ref:D,...H})})});process.env.NODE_ENV!=="production"&&(Ai.propTypes={addEndListener:s.func,appear:s.bool,children:Xi.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Ai&&(Ai.muiSupportAuto=!0);function MP(e){return Oe("MuiPaper",e)}De("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const IP=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ie(i,MP,r)},NP=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ut(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),As=k.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiPaper"}),r=Ns(),{className:i,component:a="div",elevation:l=1,square:d=!1,variant:u="elevation",...f}=o,p={...o,component:a,elevation:l,square:d,variant:u},y=IP(p);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
133
133
|
`)),O.jsx(NP,{as:a,ownerState:p,className:Se(y.root,i),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${it("#fff",Ld(l))}, ${it("#fff",Ld(l))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(As.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:hr(Mg,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});function It({props:e,name:t}){return SE({props:e,name:t,defaultTheme:Jl,themeId:oa})}function AP(e){return Oe("MuiSvgIcon",e)}De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FP=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${be(t)}`,`fontSize${be(n)}`]};return Ie(r,AP,o)},LP=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${be(n.color)}`],t[`fontSize${be(n.fontSize)}`]]}})(ut(({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:t=>!t.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(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.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}}]}))),Fi=k.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...w}=o,b=k.isValidElement(r)&&r.type==="svg",g={...o,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const T=FP(g);return O.jsxs(LP,{as:l,className:Se(T.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...w,...b&&r.props,ownerState:g,children:[b?r.props.children:r,p?O.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Fi.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});Fi&&(Fi.muiName="SvgIcon");function an(e,t){function n(o,r){return O.jsx(Fi,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Fi.muiName,k.memo(k.forwardRef(n))}var Fa={exports:{}},_t={};/**
|
|
134
134
|
* @license React
|
|
135
135
|
* react-is.production.min.js
|
|
@@ -233,9 +233,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
233
233
|
`)),w!==null&&fe<w){const Ae=fe-w;fe-=Ae,B.horizontal+=Ae}else if(Ce>$e){const Ae=Ce-$e;fe-=Ae,B.horizontal+=Ae}return{top:`${Math.round(Q)}px`,left:`${Math.round(fe)}px`,transformOrigin:Lp(B)}},[i,d,X,q,w]),[H,ae]=k.useState(b),N=k.useCallback(()=>{const ie=R.current;if(!ie)return;const he=Y(ie);he.top!==null&&ie.style.setProperty("top",he.top),he.left!==null&&(ie.style.left=he.left),ie.style.transformOrigin=he.transformOrigin,ae(!0)},[Y]);k.useEffect(()=>(A&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[i,A,N]);const M=(ie,he)=>{C&&C(ie,he),N()},V=()=>{ae(!1)};k.useEffect(()=>{b&&N()}),k.useImperativeHandle(r,()=>b?{updatePosition:()=>{N()}}:null,[b,N]),k.useEffect(()=>{if(!b)return;const ie=Tg(()=>{N()}),he=Go(i);return he.addEventListener("resize",ie),()=>{ie.clear(),he.removeEventListener("resize",ie)}},[i,b,N]);let W=S;S==="auto"&&!x.muiSupportAuto&&(W=void 0);const ne=p||(i?yn(tl(i)).body:void 0),oe={slots:v,slotProps:{...T,paper:z}},[se,j]=Rn("paper",{elementType:Uy,externalForwardedProps:oe,additionalProps:{elevation:y,className:Se(K.paper,z?.className),style:H?z.style:{...z.style,opacity:0}},ownerState:$}),[J,{slotProps:ee,...te}]=Rn("root",{elementType:qM,externalForwardedProps:oe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ne,open:b},ownerState:$,className:Se(K.root,f)}),ce=at(R,j.ref);return O.jsx(J,{...te,...!ji(J)&&{slotProps:ee,disableScrollLock:A},...F,ref:n,children:O.jsx(x,{appear:!0,in:b,onEntering:M,onExited:V,timeout:W,...D,children:O.jsx(se,{...j,ref:ce,children:u})})})});process.env.NODE_ENV!=="production"&&(qy.propTypes={action:Wt,anchorEl:hr(s.oneOfType([qo,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=tl(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
234
234
|
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
235
235
|
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([qo,s.func]),disableScrollLock:s.bool,elevation:Mg,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:Fl}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function GM(e){return Oe("MuiMenu",e)}De("MuiMenu",["root","paper","list"]);const KM={vertical:"top",horizontal:"right"},XM={vertical:"top",horizontal:"left"},ZM=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},GM,t)},QM=le(qy,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JM=le(Uy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eI=le(Yy,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Gy=k.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:u,open:f,PaperProps:p={},PopoverClasses:y,transitionDuration:w="auto",TransitionProps:{onEntering:b,...g}={},variant:v="selectedMenu",slots:T={},slotProps:P={},...x}=o,S=lo(),C={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:d,onEntering:b,PaperProps:p,transitionDuration:w,TransitionProps:g,variant:v},D=ZM(C),A=r&&!l&&f,F=k.useRef(null),z=(H,ae)=>{F.current&&F.current.adjustStyleForScrollbar(H,{direction:S?"rtl":"ltr"}),b&&b(H,ae)},R=H=>{H.key==="Tab"&&(H.preventDefault(),u&&u(H,"tabKeyDown"))};let $=-1;k.Children.map(i,(H,ae)=>{k.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&Au.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
236
|
-
`)),H.props.disabled||(v==="selectedMenu"&&H.props.selected||$===-1)&&($=ae))});const K=T.paper??JM,X=P.paper??p,q=ct({elementType:T.root,externalSlotProps:P.root,ownerState:C,className:[D.root,a]}),Y=ct({elementType:K,externalSlotProps:X,ownerState:C,className:D.paper});return O.jsx(QM,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?KM:XM,slots:{paper:K,root:T.root},slotProps:{root:q,paper:Y},open:f,ref:n,transitionDuration:w,TransitionProps:{onEntering:z,...g},ownerState:C,...x,classes:y,children:O.jsx(eI,{onKeyDown:R,actions:F,autoFocus:r&&($===-1||l),autoFocusItem:A,variant:v,...d,className:Se(D.list,d.className),children:i})})});process.env.NODE_ENV!=="production"&&(Gy.propTypes={anchorEl:s.oneOfType([qo,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function tI(e){return Oe("MuiMenuItem",e)}const Js=De("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},oI=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},tI,a);return{...a,...d}},rI=le(dr,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:nI})(ut(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Js.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Js.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Js.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Js.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ep.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ep.inset}`]:{marginLeft:52},[`& .${ds.root}`]:{marginTop:0,marginBottom:0},[`& .${ds.inset}`]:{paddingLeft:36},[`& .${Ip.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Ip.root} svg`]:{fontSize:"1.25rem"}}}]}))),bl=k.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:y,...w}=o,b=k.useContext(Yo),g=k.useMemo(()=>({dense:a||b.dense||!1,disableGutters:d}),[b.dense,a,d]),v=k.useRef(null);nn(()=>{r&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const T={...o,dense:g.dense,divider:l,disableGutters:d},P=oI(o),x=at(v,n);let S;return o.disabled||(S=p!==void 0?p:-1),O.jsx(Yo.Provider,{value:g,children:O.jsx(rI,{ref:x,role:f,tabIndex:S,component:i,focusVisibleClassName:Se(P.focusVisible,u),className:Se(P.root,y),...w,ownerState:T,classes:P})})});process.env.NODE_ENV!=="production"&&(bl.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});function sI(e){return Oe("MuiNativeSelect",e)}const Xu=De("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iI=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${be(n)}`,i&&"iconOpen",o&&"disabled"]};return Ie(l,sI,t)},Ky=le("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Xu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),aI=le(Ky,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Xu.multiple}`]:t.multiple}]}})({}),Xy=le("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Xu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),lI=le(Xy,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${be(n.variant)}`],n.open&&t.iconOpen]}})({}),Zy=k.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:d="standard",...u}=t,f={...t,disabled:r,variant:d,error:i},p=iI(f);return O.jsxs(k.Fragment,{children:[O.jsx(aI,{ownerState:f,className:Se(p.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:O.jsx(lI,{as:a,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Zy.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Wt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var $p;const cI=le("fieldset",{shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dI=le("legend",{shouldForwardProp:Dn})(ut(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Qy(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",d={...e,notched:i,withLabel:l};return O.jsx(cI,{"aria-hidden":!0,className:o,ownerState:d,...a,children:O.jsx(dI,{ownerState:d,children:l?O.jsx("span",{children:r}):$p||($p=O.jsx("span",{className:"notranslate",children:""}))})})}process.env.NODE_ENV!=="production"&&(Qy.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const uI=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Y1,t);return{...t,...o}},hI=le(rc,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nc})(ut(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${po.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${po.focused} .${po.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dn()).map(([n])=>({props:{color:n},style:{[`&.${po.focused} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${po.error} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${po.disabled} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),fI=le(Qy,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ut(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),pI=le(sc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:oc})(ut(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),ks=k.forwardRef(function(t,n){var o;const r=Xe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:d,multiline:u=!1,notched:f,slots:p={},type:y="text",...w}=r,b=uI(r),g=On(),v=gr({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:g,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},P=p.root??i.Root??hI,x=p.input??i.Input??pI;return O.jsx(ic,{slots:{root:P,input:x},renderSuffix:S=>O.jsx(fI,{ownerState:T,className:b.notchedOutline,label:d!=null&&d!==""&&v.required?o||(o=O.jsxs(k.Fragment,{children:[d," ","*"]})):d,notched:typeof f<"u"?f:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:y,...w,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(ks.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});ks&&(ks.muiName="Input");function mI(e){return Oe("MuiSelect",e)}const ei=De("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Vp;const gI=le(Ky,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ei.select}`]:t.select},{[`&.${ei.select}`]:t[n.variant]},{[`&.${ei.error}`]:t.error},{[`&.${ei.multiple}`]:t.multiple}]}})({[`&.${ei.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yI=le(Xy,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${be(n.variant)}`],n.open&&t.iconOpen]}})({}),vI=le("input",{shouldForwardProp:e=>py(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function jp(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function bI(e){return e==null||typeof e=="string"&&!e.trim()}const wI=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${be(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ie(l,mI,t)},Jy=k.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:d,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:y,error:w=!1,IconComponent:b,inputRef:g,labelId:v,MenuProps:T={},multiple:P,name:x,onBlur:S,onChange:C,onClose:D,onFocus:A,onOpen:F,open:z,readOnly:R,renderValue:$,SelectDisplayProps:K={},tabIndex:X,type:q,value:Y,variant:H="standard",...ae}=t,[N,M]=Ro({controlled:Y,default:f,name:"Select"}),[V,W]=Ro({controlled:z,default:u,name:"Select"}),ne=k.useRef(null),oe=k.useRef(null),[se,j]=k.useState(null),{current:J}=k.useRef(z!=null),[ee,te]=k.useState(),ce=at(n,g),ie=k.useCallback(Me=>{oe.current=Me,Me&&j(Me)},[]),he=se?.parentNode;k.useImperativeHandle(ce,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:N}),[N]),k.useEffect(()=>{u&&V&&se&&!J&&(te(a?null:he.clientWidth),oe.current.focus())},[se,a]),k.useEffect(()=>{i&&oe.current.focus()},[i]),k.useEffect(()=>{if(!v)return;const Me=yn(oe.current).getElementById(v);if(Me){const Be=()=>{getSelection().isCollapsed&&oe.current.focus()};return Me.addEventListener("click",Be),()=>{Me.removeEventListener("click",Be)}}},[v]);const B=(Me,Be)=>{Me?F&&F(Be):D&&D(Be),J||(te(a?null:he.clientWidth),W(Me))},re=Me=>{Me.button===0&&(Me.preventDefault(),oe.current.focus(),B(!0,Me))},Q=Me=>{B(!1,Me)},fe=k.Children.toArray(l),me=Me=>{const Be=fe.find(vt=>vt.props.value===Me.target.value);Be!==void 0&&(M(Be.props.value),C&&C(Me,Be))},Ce=Me=>Be=>{let vt;if(Be.currentTarget.hasAttribute("tabindex")){if(P){vt=Array.isArray(N)?N.slice():[];const ln=N.indexOf(Me.props.value);ln===-1?vt.push(Me.props.value):vt.splice(ln,1)}else vt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(Be),N!==vt&&(M(vt),C)){const ln=Be.nativeEvent||Be,uo=new ln.constructor(ln.type,ln);Object.defineProperty(uo,"target",{writable:!0,value:{value:vt,name:x}}),C(uo,Me)}P||B(!1,Be)}},ve=Me=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),B(!0,Me))},xe=se!==null&&V,$e=Me=>{!xe&&S&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:N,name:x}}),S(Me))};delete ae["aria-invalid"];let Ae,rt;const Pe=[];let ft=!1,Kt=!1;(yl({value:N})||y)&&($?Ae=$(N):ft=!0);const st=fe.map(Me=>{if(!k.isValidElement(Me))return null;process.env.NODE_ENV!=="production"&&Au.isFragment(Me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
237
|
-
`));let
|
|
238
|
-
`))}},[Kt,fe,P,x,N]),ft&&(P?Pe.length===0?Ae=null:Ae=Pe.reduce((Me,Be,vt)=>(Me.push(Be),vt<Pe.length-1&&Me.push(", "),Me),[]):Ae=rt);let Yt=ee;!a&&J&&se&&(Yt=he.clientWidth);let Xt;typeof X<"u"?Xt=X:Xt=p?null:0;const on=K.id||(x?`mui-component-select-${x}`:void 0),Ue={...t,variant:H,value:N,open:xe,error:w},tt=wI(Ue),Mn={...T.PaperProps,...T.slotProps?.paper},hn=fr();return O.jsxs(k.Fragment,{children:[O.jsx(gI,{as:"div",ref:ie,tabIndex:Xt,role:"combobox","aria-controls":hn,"aria-disabled":p?"true":void 0,"aria-expanded":xe?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,on].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ve,onMouseDown:p||R?null:re,onBlur:$e,onFocus:A,...K,ownerState:Ue,className:Se(K.className,tt.select,d),id:on,children:bI(Ae)?Vp||(Vp=O.jsx("span",{className:"notranslate",children:""})):Ae}),O.jsx(vI,{"aria-invalid":w,value:Array.isArray(N)?N.join(","):N,name:x,ref:ne,"aria-hidden":!0,onChange:me,tabIndex:-1,disabled:p,className:tt.nativeInput,autoFocus:i,...ae,ownerState:Ue}),O.jsx(yI,{as:b,className:tt.icon,ownerState:Ue}),O.jsx(Gy,{id:`menu-${x||""}`,anchorEl:he,open:xe,onClose:Q,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":P?"true":void 0,disableListWrap:!0,id:hn,...T.MenuListProps},slotProps:{...T.slotProps,paper:{...Mn,style:{minWidth:Yt,...Mn!=null?Mn.style:null}}},children:st})]})});process.env.NODE_ENV!=="production"&&(Jy.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Wt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const CI=e=>{const{classes:t}=e;return t},Zu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Dn(e)&&e!=="variant",slot:"Root"},SI=le(Hi,Zu)(""),_I=le(ks,Zu)(""),xI=le(Bi,Zu)(""),da=k.forwardRef(function(t,n){const o=Xe({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:u=!1,IconComponent:f=q1,id:p,input:y,inputProps:w,label:b,labelId:g,MenuProps:v,multiple:T=!1,native:P=!1,onClose:x,onOpen:S,open:C,renderValue:D,SelectDisplayProps:A,variant:F="outlined",...z}=o,R=P?Zy:Jy,$=On(),K=gr({props:o,muiFormControl:$,states:["variant","error"]}),X=K.variant||F,q={...o,variant:X,classes:a},Y=CI(q),{root:H,...ae}=Y,N=y||{standard:O.jsx(SI,{ownerState:q}),outlined:O.jsx(_I,{label:b,ownerState:q}),filled:O.jsx(xI,{ownerState:q})}[X],M=at(n,Zi(N));return O.jsx(k.Fragment,{children:k.cloneElement(N,{inputComponent:R,inputProps:{children:i,error:K.error,IconComponent:f,variant:X,type:void 0,multiple:T,...P?{id:p}:{autoWidth:r,defaultOpen:d,displayEmpty:u,labelId:g,MenuProps:v,onClose:x,onOpen:S,open:C,renderValue:D,SelectDisplayProps:{id:p,...A}},...w,classes:w?gn(ae,w.classes):ae,...y?y.props.inputProps:{}},...(T&&P||u)&&X==="outlined"?{notched:!0}:{},ref:M,className:Se(N.props.className,l,Y.root),...!y&&{variant:X},...z})})});process.env.NODE_ENV!=="production"&&(da.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});da.muiName="Select";function RI(e){return Oe("MuiTextField",e)}De("MuiTextField",["root"]);const TI={standard:Hi,filled:Bi,outlined:ks},kI=e=>{const{classes:t}=e;return Ie({root:["root"]},RI,t)},EI=le(la,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Es=k.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:g,InputLabelProps:v,inputProps:T,InputProps:P,inputRef:x,label:S,maxRows:C,minRows:D,multiline:A=!1,name:F,onBlur:z,onChange:R,onFocus:$,placeholder:K,required:X=!1,rows:q,select:Y=!1,SelectProps:H,slots:ae={},slotProps:N={},type:M,value:V,variant:W="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:A,required:X,select:Y,variant:W},se=kI(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=fr(g),J=b&&j?`${j}-helper-text`:void 0,ee=S&&j?`${j}-label`:void 0,te=TI[W],ce={slots:ae,slotProps:{input:P,inputLabel:v,htmlInput:T,formHelperText:y,select:H,...N}},ie={},he=ce.slotProps.inputLabel;W==="outlined"&&(he&&typeof he.shrink<"u"&&(ie.notched=he.shrink),ie.label=S),Y&&((!H||!H.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const[B,re]=Rn("input",{elementType:te,externalForwardedProps:ce,additionalProps:ie,ownerState:oe}),[Q,fe]=Rn("inputLabel",{elementType:ca,externalForwardedProps:ce,ownerState:oe}),[me,Ce]=Rn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ve,xe]=Rn("formHelperText",{elementType:Uu,externalForwardedProps:ce,ownerState:oe}),[$e,Ae]=Rn("select",{elementType:da,externalForwardedProps:ce,ownerState:oe}),rt=O.jsx(B,{"aria-describedby":J,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:A,name:F,rows:q,maxRows:C,minRows:D,type:M,value:V,id:j,inputRef:x,onBlur:z,onChange:R,onFocus:$,placeholder:K,inputProps:Ce,slots:{input:ae.htmlInput?me:void 0},...re});return O.jsxs(EI,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:X,color:d,variant:W,ownerState:oe,...ne,children:[S!=null&&S!==""&&O.jsx(Q,{htmlFor:j,id:ee,...fe,children:S}),Y?O.jsx($e,{"aria-describedby":J,id:j,labelId:ee,value:V,input:rt,...Ae,children:a}):rt,b&&O.jsx(ve,{id:J,...xe,children:b})]})});process.env.NODE_ENV!=="production"&&(Es.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});le(by)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});const rd={};let ev=class{constructor(){this._args={...rd},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args=rd;const t=this.grid.getData();t.setFilterArgs(rd),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class PI extends ev{getFilterFn(){return t=>!t?.isDeleted}}class DI{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(){}print(){return[]}reset(){}get args(){return this._args}get grid(){return this._grid}get tableId(){return this._tableId}set args(t){}set grid(t){}set tableId(t){}}function us(e){return new Date(e).getTime()}class tv{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(n,o)=>this.filterFn(n,o)&&t(n,o)}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function OI(e){return{tooltip:"Apply column filter",command:e}}class Qu{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const n=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(n,1)}notify(){for(const t of this.observers)t()}}class MI extends Qu{constructor(){super(...arguments),this.columnId="",this.group=sn.Text,this.target=null,this.x=0,this.y=0}}const wn=new MI;class II{highlightAllColumns(t,n){const o=document.getElementById(n);if(!o)return;const r=Object.keys(t.columnFilters||{});if(r.length)for(const i of r){const a=o.querySelector(`[data-id="${i}"]`);if(!a)return;t.columnFilters[i].value[1]||t.columnFilters[i].value[2]?a.classList.add("filter-active"):a.classList.remove("filter-active")}else{const i=o.querySelectorAll(".slick-header-column");for(const a of i)a.classList.remove("filter-active")}}highlightColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.add("filter-active")}resetColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.remove("filter-active")}}const ur=new II;function nv(e){return ur.highlightAllColumns(e.filter.args,e.id),function(t,n){t.preventDefault(),wn.columnId=n.column.id||"",wn.group=n.command,wn.table=e,wn.target=t.target,wn.x=t.x||0,wn.y=t.y||0,wn.notify()}}var NI=Object.defineProperty,AI=(e,t,n)=>t in e?NI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>AI(e,typeof t!="symbol"?t+"":t,n),zi=class{constructor(e,t){this.event=e,this.args=t,E(this,"_isPropagationStopped",!1),E(this,"_isImmediatePropagationStopped",!1),E(this,"_isDefaultPrevented",!1),E(this,"returnValues",[]),E(this,"returnValue"),E(this,"_eventTarget"),E(this,"nativeEvent"),E(this,"arguments_"),E(this,"altKey"),E(this,"ctrlKey"),E(this,"metaKey"),E(this,"shiftKey"),E(this,"key"),E(this,"keyCode"),E(this,"clientX"),E(this,"clientY"),E(this,"offsetX"),E(this,"offsetY"),E(this,"pageX"),E(this,"pageY"),E(this,"bubbles"),E(this,"target"),E(this,"type"),E(this,"which"),E(this,"x"),E(this,"y"),this.nativeEvent=e,this.arguments_=t,e&&["altKey","ctrlKey","metaKey","shiftKey","key","keyCode","clientX","clientY","offsetX","offsetY","pageX","pageY","bubbles","target","type","which","x","y"].forEach(n=>this[n]=e[n]),this._eventTarget=this.nativeEvent?this.nativeEvent.target:void 0}get defaultPrevented(){return this._isDefaultPrevented}stopPropagation(){this._isPropagationStopped=!0,this.nativeEvent?.stopPropagation()}isPropagationStopped(){return this._isPropagationStopped}stopImmediatePropagation(){this._isImmediatePropagationStopped=!0,this.nativeEvent&&this.nativeEvent.stopImmediatePropagation()}isImmediatePropagationStopped(){return this._isImmediatePropagationStopped}getNativeEvent(){return this.nativeEvent}preventDefault(){this.nativeEvent&&this.nativeEvent.preventDefault(),this._isDefaultPrevented=!0}isDefaultPrevented(){return this.nativeEvent?this.nativeEvent.defaultPrevented:this._isDefaultPrevented}addReturnValue(e){this.returnValues.push(e),this.returnValue===void 0&&e!==void 0&&(this.returnValue=e)}getReturnValue(){return this.returnValue}getArguments(){return this.arguments_}},Vr=class{constructor(e,t){this.eventName=e,this.pubSub=t,E(this,"_handlers",[]),E(this,"_pubSubService"),this._pubSubService=t}get subscriberCount(){return this._handlers.length}subscribe(e){this._handlers.push(e)}unsubscribe(e){for(let t=this._handlers.length-1;t>=0;t--)this._handlers[t]===e&&this._handlers.splice(t,1)}notify(e,t,n){let o=t instanceof zi?t:new zi(t,e);n=n||this;for(let r=0;r<this._handlers.length&&!(o.isPropagationStopped()||o.isImmediatePropagationStopped());r++){let i=this._handlers[r].call(n,o,e);o.addReturnValue(i)}if(typeof this._pubSubService?.publish=="function"&&this.eventName){let r=this._pubSubService.publish(this.eventName,{args:e,eventData:o});o.addReturnValue(r)}return o}setPubSubService(e){this._pubSubService=e}},ua=class{constructor(){E(this,"handlers",[])}subscribe(e,t){return this.handlers.push({event:e,handler:t}),e.subscribe(t),this}unsubscribe(e,t){let n=this.handlers.length;for(;n--;)if(this.handlers[n].event===e&&this.handlers[n].handler===t){this.handlers.splice(n,1),e.unsubscribe(t);return}return this}unsubscribeAll(){let e=this.handlers.length;for(;e--;)this.handlers[e].event.unsubscribe(this.handlers[e].handler);return this.handlers=[],this}},Ju=class{constructor(e,t,n,o){E(this,"fromRow"),E(this,"fromCell"),E(this,"toCell"),E(this,"toRow"),n===void 0&&o===void 0&&(n=e,o=t),this.fromRow=Math.min(e,n),this.fromCell=Math.min(t,o),this.toCell=Math.max(t,o),this.toRow=Math.max(e,n)}isSingleRow(){return this.fromRow===this.toRow}isSingleCell(){return this.fromRow===this.toRow&&this.fromCell===this.toCell}contains(e,t){return e>=this.fromRow&&e<=this.toRow&&t>=this.fromCell&&t<=this.toCell}toString(){return this.isSingleCell()?`(${this.fromRow}:${this.fromCell})`:`(${this.fromRow}:${this.fromCell} - ${this.toRow}:${this.toCell})`}},ov=class{constructor(){E(this,"__nonDataRow",!0)}},rv=class extends ov{constructor(){super(),E(this,"__group",!0),E(this,"level",0),E(this,"count",0),E(this,"value",null),E(this,"title",null),E(this,"collapsed",!1),E(this,"selectChecked",!1),E(this,"totals",null),E(this,"rows",[]),E(this,"groups",null),E(this,"groupingKey",null)}equals(e){return this.value===e.value&&this.count===e.count&&this.collapsed===e.collapsed&&this.title===e.title}},FI=class extends ov{constructor(){super(),E(this,"__groupTotals",!0),E(this,"group",null),E(this,"initialized",!1)}},LI=class{constructor(){E(this,"activeEditController",null)}isActive(e){return e?this.activeEditController===e:this.activeEditController!==null}activate(e){if(e!==this.activeEditController){if(this.activeEditController!==null)throw new Error("Slick.EditorLock.activate: an editController is still active, can't activate another editController");if(!e.commitCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!e.cancelCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .cancelCurrentEdit()");this.activeEditController=e}}deactivate(e){if(this.activeEditController){if(this.activeEditController!==e)throw new Error("Slick.EditorLock.deactivate: specified editController is not the currently active one");this.activeEditController=null}}commitCurrentEdit(){return this.activeEditController?this.activeEditController.commitCurrentEdit():!0}cancelCurrentEdit(){return this.activeEditController?this.activeEditController.cancelCurrentEdit():!0}},ac=class{constructor(){E(this,"_boundedEvents",[])}getBoundedEvents(){return this._boundedEvents}destroy(){this.unbindAll()}bind(e,t,n,o,r=""){e&&(e.addEventListener(t,n,o),this._boundedEvents.push({element:e,eventName:t,listener:n,groupName:r}))}unbind(e,t,n){e?.removeEventListener&&e.removeEventListener(t,n)}unbindByEventName(e,t){let n=this._boundedEvents.find(o=>o.element===e&&o.eventName===t);n&&this.unbind(n.element,n.eventName,n.listener)}unbindAll(e){if(e){let t=Array.isArray(e)?e:[e];for(let n=this._boundedEvents.length-1;n>=0;--n){let o=this._boundedEvents[n];if(t.some(r=>r===o.groupName)){let{element:r,eventName:i,listener:a}=o;this.unbind(r,i,a),this._boundedEvents.splice(n,1)}}}else for(;this._boundedEvents.length>0;){let t=this._boundedEvents.pop(),{element:n,eventName:o,listener:r}=t;this.unbind(n,o,r)}}},Hn=class jt{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||jt.toString.call(t)!=="[object Object]")return!1;let n=jt.getProto(t);if(!n)return!0;let o=jt.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&jt.fnToString.call(o)===jt.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,l=window.innerWidth||0,d=jt.windowScrollPosition(),u=d.top,f=d.left,p=jt.offset(t);if(p){let y=p.top||0,w=p.left||0;o=y-u,n=a-(y-u),r=w-f,i=l-(w-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!jt.isFunction(d)&&(d={}),u===p&&(d=this,u--);u<p;u++)if(jt.isDefined(n=t[u]))for(o in n)i=n[o],!(o==="__proto__"||d===i)&&(f&&i&&(jt.isPlainObject(i)||(a=Array.isArray(i)))?(r=d[o],a&&!Array.isArray(r)?l=[]:!a&&!jt.isPlainObject(r)?l={}:l=r,a=!1,d[o]=jt.extend(f,l,i)):i!==void 0&&(d[o]=i));return d}static createDomElement(t,n,o){let r=document.createElement(t);return n&&Object.keys(n).forEach(i=>{i==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let a=n[i];typeof a=="object"?Object.assign(r[i],a):r[i]=n[i]}),o?.appendChild&&o.appendChild(r),r}static getHtmlStringOutput(t,n="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,o=>o[n]).join("")||t.textContent||"":t instanceof HTMLElement?t[n]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(n=>n)}static innerSize(t,n){let o=0;if(t){let r=n==="height"?"clientHeight":"clientWidth",i=n==="height"?["top","bottom"]:["left","right"];o=t[r];for(let a of i){let l=parseFloat(jt.getElementProp(t,`padding-${a}`)||"")||0;o-=l}}return o}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,n){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(n):null}static getFunctionDetails(t,n=!0){let o=!1,r=i=>{let a=i.toString();if(o=a.includes("async "),a.replaceAll(" ","").includes("=>({")){let u=a.match(/(({.*}))/g)||[];return u.length>=1?`return ${u[0].trimStart()}`:a}let l=!a.includes("{")&&a.includes("=>"),d=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&l&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,l=/([^\s,]+)/g,d=i.toString().replace(a,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(l)??[]})(t),body:r(t),isAsync:o}}static insertAfterElement(t,n){t.parentNode?.insertBefore(n,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let n=t.getBoundingClientRect(),o=document.documentElement;return{top:n.top+window.pageYOffset-o.clientTop,left:n.left+window.pageXOffset-o.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,n){if(!(!t||!t.getBoundingClientRect)){if(n===void 0)return t.getBoundingClientRect().width;jt.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;jt.setStyleSize(t,"height",n)}}static setStyleSize(t,n,o){typeof o=="function"?o=o():typeof o=="string"?t.style[n]=o:t.style[n]=o+"px"}static contains(t,n){return!t||!n?!1:!jt.parents(n).every(o=>t!==o)}static isHidden(t){return t.offsetWidth===0&&t.offsetHeight===0}static parents(t,n){let o=[],r=n===":visible",i=n===":hidden";for(;(t=t.parentNode)&&t!==document&&!(!t||!t.parentNode);)i?jt.isHidden(t)&&o.push(t):r?jt.isHidden(t)||o.push(t):(!n||t.matches(n))&&o.push(t);return o}static toFloat(t){let n=parseFloat(t);return isNaN(n)?0:n}static show(t,n=""){Array.isArray(t)?t.forEach(o=>o.style.display=n):t.style.display=n}static hide(t){Array.isArray(t)?t.forEach(n=>n.style.display="none"):t.style.display="none"}static slideUp(t,n){return jt.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return jt.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?jt.hide(t):jt.show(t),o()}static applyDefaults(t,n){typeof n=="object"&&Object.keys(n).forEach(o=>{n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])})}static addSlickEventPubSubWhenDefined(t,n){if(t)for(let o in n)n[o]instanceof Vr&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};E(Hn,"getProto",Object.getPrototypeOf),E(Hn,"class2type",{}),E(Hn,"toString",Hn.class2type.toString),E(Hn,"hasOwn",Hn.class2type.hasOwnProperty),E(Hn,"fnToString",Hn.hasOwn.toString),E(Hn,"ObjectFunctionString",Hn.fnToString.call(Object)),E(Hn,"storage",{_storage:new WeakMap,put:function(e,t,n){this._storage.has(e)||this._storage.set(e,new Map),this._storage.get(e).set(t,n)},get:function(e,t){let n=this._storage.get(e);return n?n.get(t):null},remove:function(e,t){let n=this._storage.get(e).delete(t);return this._storage.get(e).size!==0&&this._storage.delete(e),n}});var co=Hn,sv=new LI,$I={Event:Vr,EventHandler:ua,GlobalEditorLock:sv,keyCode:{SPACE:8,DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{Event:VI,EventHandler:jI,GlobalEditorLock:WI,keyCode:lc,preClickClassName:BI,GridAutosizeColsMode:iv,ColAutosizeMode:HI,RowSelectionMode:zI,ValueFilterMode:YI,WidthEvalMode:UI}=$I,qI=co,av=class{constructor(e,t){this.grid=e,E(this,"pluginName","CellRangeDecorator"),E(this,"_options"),E(this,"_elem"),E(this,"_defaults",{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}}),this._options=qI.extend(!0,{},this._defaults,t)}destroy(){this.hide()}init(){}hide(){this._elem?.remove(),this._elem=null}show(e){if(!this._elem){this._elem=document.createElement("div"),this._elem.className=this._options.selectionCssClass,Object.keys(this._options.selectionCss).forEach(r=>{this._elem.style[r]=this._options.selectionCss[r]}),this._elem.style.position="absolute";let o=this.grid.getActiveCanvasNode();o&&o.appendChild(this._elem)}let t=this.grid.getCellNodeBox(e.fromRow,e.fromCell),n=this.grid.getCellNodeBox(e.toRow,e.toCell);return t&&n&&this._options?.offset&&(this._elem.style.top=`${t.top+this._options.offset.top}px`,this._elem.style.left=`${t.left+this._options.offset.left}px`,this._elem.style.height=`${n.bottom-t.top+this._options.offset.height}px`,this._elem.style.width=`${n.right-t.left+this._options.offset.width}px`),this._elem}},GI=co;function eh(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let w={dragSource:t,dragHandle:null};function b(){t&&(t.addEventListener("mousedown",P),t.addEventListener("touchstart",P))}function g(C,D,A){if(typeof C=="function")return C(D,A)}function v(){t&&(t.removeEventListener("mousedown",P),t.removeEventListener("touchstart",P))}function T(C){let D=!1;return a&&a.forEach(A=>{C[A]&&(D=!0)}),D}function P(C){if(!T(C)){l=C.target;let D=C?.touches?.[0]??C,{target:A}=D;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){w.dragHandle=l;let F=GI.windowScrollPosition();d=F.left+D.clientX,u=F.top+D.clientY,f=D.clientX-D.clientX,p=D.clientY-D.clientY,w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(n,C,w)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!T(C)){let D=C?.touches?.[0]??C;f=D.clientX-d,p=D.clientY-u;let{target:A}=D;y||(w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(o,C,w),y=!0),w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(r,C,w)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:D}=C;w=Object.assign(w,{target:D}),g(i,C,w),y=!1}}return b(),{destroy:v}}function KI(e){let{element:t,onMouseWheel:n}=e;function o(){t.removeEventListener("wheel",i),t.removeEventListener("mousewheel",i)}function r(){t.addEventListener("wheel",i),t.addEventListener("mousewheel",i)}function i(a){let l=a||window.event,d=0,u=0,f=0;l.wheelDelta&&(d=l.wheelDelta/120),l.detail&&(d=-l.detail/3),f=d,l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS&&(f=0,u=-1*d),l.wheelDeltaY!==void 0&&(f=l.wheelDeltaY/120),l.wheelDeltaX!==void 0&&(u=-1*l.wheelDeltaX/120),typeof n=="function"&&n(a,d,u,f)}return r(),{destroy:o}}function XI(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,w){if(typeof y=="function")return y(w,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let w=y.touches?y.changedTouches[0]:y;d(o,w)!==!1&&(document.body.addEventListener("mousemove",f),document.body.addEventListener("mouseup",p),document.body.addEventListener("touchmove",f),document.body.addEventListener("touchend",p))}function f(y){y.preventDefault&&y.type!=="touchmove"&&y.preventDefault();let w=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(w,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let w=y.touches?y.changedTouches[0]:y;d(i,w),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var sd=Vr,ZI=ua,id=Ju,QI=eh,JI=av,ti=co,eN=class{constructor(e){E(this,"pluginName","CellRangeSelector"),E(this,"onBeforeCellRangeSelected",new sd("onBeforeCellRangeSelected")),E(this,"onCellRangeSelected",new sd("onCellRangeSelected")),E(this,"onCellRangeSelecting",new sd("onCellRangeSelecting")),E(this,"_grid"),E(this,"_currentlySelectedRange",null),E(this,"_canvas",null),E(this,"_decorator"),E(this,"_gridOptions"),E(this,"_activeCanvas"),E(this,"_dragging",!1),E(this,"_handler",new ZI),E(this,"_options"),E(this,"_defaults",{autoScroll:!0,minIntervalToShowNextCell:30,maxIntervalToShowNextCell:600,accelerateInterval:5,selectionCss:{border:"2px dashed blue"}}),E(this,"_rowOffset",0),E(this,"_columnOffset",0),E(this,"_isRightCanvas",!1),E(this,"_isBottomCanvas",!1),E(this,"_activeViewport"),E(this,"_autoScrollTimerId"),E(this,"_draggingMouseOffset"),E(this,"_moveDistanceForOneCell"),E(this,"_xDelayForNextCell",0),E(this,"_yDelayForNextCell",0),E(this,"_viewportHeight",0),E(this,"_viewportWidth",0),E(this,"_isRowMoveRegistered",!1),E(this,"_scrollLeft",0),E(this,"_scrollTop",0),this._options=ti.extend(!0,{},this._defaults,e)}init(e){if(QI===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new JI(e,this._options),this._grid=e,ti.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._canvas=this._grid.getCanvasNode(),this._gridOptions=this._grid.getOptions(),this._handler.subscribe(this._grid.onScroll,this.handleScroll.bind(this)).subscribe(this._grid.onDragInit,this.handleDragInit.bind(this)).subscribe(this._grid.onDragStart,this.handleDragStart.bind(this)).subscribe(this._grid.onDrag,this.handleDrag.bind(this)).subscribe(this._grid.onDragEnd,this.handleDragEnd.bind(this))}destroy(){this._handler.unsubscribeAll(),this._activeCanvas=null,this._activeViewport=null,this._canvas=null,this._decorator?.destroy()}getCellDecorator(){return this._decorator}handleScroll(e,t){this._scrollTop=t.scrollTop,this._scrollLeft=t.scrollLeft}handleDragInit(e){this._activeCanvas=this._grid.getActiveCanvasNode(e),this._activeViewport=this._grid.getActiveViewportNode(e);let t=this._grid.getDisplayedScrollbarDimensions();if(this._viewportWidth=this._activeViewport.offsetWidth-t.width,this._viewportHeight=this._activeViewport.offsetHeight-t.height,this._moveDistanceForOneCell={x:this._grid.getAbsoluteColumnMinWidth()/2,y:this._grid.getOptions().rowHeight/2},this._isRowMoveRegistered=this.hasRowMoveManager(),this._rowOffset=0,this._columnOffset=0,this._isBottomCanvas=this._activeCanvas.classList.contains("grid-canvas-bottom"),this._gridOptions.frozenRow>-1&&this._isBottomCanvas){let n=`.${this._grid.getUID()} .grid-canvas-${this._gridOptions.frozenBottom?"bottom":"top"}`,o=document.querySelector(n);o&&(this._rowOffset=o.clientHeight||0)}if(this._isRightCanvas=this._activeCanvas.classList.contains("grid-canvas-right"),this._gridOptions.frozenColumn>-1&&this._isRightCanvas){let n=document.querySelector(`.${this._grid.getUID()} .grid-canvas-left`);n&&(this._columnOffset=n.clientWidth||0)}e.stopImmediatePropagation(),e.preventDefault()}handleDragStart(e,t){let n=this._grid.getCellFromEvent(e);if(n&&this.onBeforeCellRangeSelected.notify(n).getReturnValue()!==!1&&this._grid.canCellBeSelected(n.row,n.cell)&&(this._dragging=!0,e.stopImmediatePropagation()),!this._dragging)return;this._grid.focus();let o=ti.offset(this._canvas),r=t.startX-(o?.left??0);this._gridOptions.frozenColumn>=0&&this._isRightCanvas&&(r+=this._scrollLeft);let i=t.startY-(o?.top??0);this._gridOptions.frozenRow>=0&&this._isBottomCanvas&&(i+=this._scrollTop);let a=this._grid.getCellFromPoint(r,i);return t.range={start:a,end:{}},this._currentlySelectedRange=t.range,this._decorator.show(new id(a.row,a.cell))}handleDrag(e,t){if(!this._dragging&&!this._isRowMoveRegistered)return;this._isRowMoveRegistered||e.stopImmediatePropagation();let n=e.getNativeEvent();if(this._options.autoScroll&&(this._draggingMouseOffset=this.getMouseOffsetViewport(n,t),this._draggingMouseOffset.isOutsideViewport))return this.handleDragOutsideViewport();this.stopIntervalTimer(),this.handleDragTo(n,t)}getMouseOffsetViewport(e,t){let n=e?.touches?.[0]??e,o=this._activeViewport.scrollLeft,r=this._activeViewport.scrollTop,i=o+this._viewportWidth,a=r+this._viewportHeight,l=ti.offset(this._activeViewport),d=l?.left??0,u=l?.top??0,f=d+this._viewportWidth,p=u+this._viewportHeight,y={e,dd:t,viewport:{left:o,top:r,right:i,bottom:a,offset:{left:d,top:u,right:f,bottom:p}},offset:{x:0,y:0},isOutsideViewport:!1};return n.pageX<d?y.offset.x=n.pageX-d:n.pageX>f&&(y.offset.x=n.pageX-f),n.pageY<u?y.offset.y=u-n.pageY:n.pageY>p&&(y.offset.y=p-n.pageY),y.isOutsideViewport=!!y.offset.x||!!y.offset.y,y}handleDragOutsideViewport(){if(this._xDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.x)*this._options.accelerateInterval,this._yDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.y)*this._options.accelerateInterval,!this._autoScrollTimerId){let e=0,t=0;this._autoScrollTimerId=window.setInterval(()=>{let n=!1,o=!1;this._draggingMouseOffset.offset.x?(e+=this._options.minIntervalToShowNextCell,n=e>=this._xDelayForNextCell):e=0,this._draggingMouseOffset.offset.y?(t+=this._options.minIntervalToShowNextCell,o=t>=this._yDelayForNextCell):t=0,(n||o)&&(n&&(e=0),o&&(t=0),this.handleDragToNewPosition(n,o))},this._options.minIntervalToShowNextCell)}}handleDragToNewPosition(e,t){let n=this._draggingMouseOffset.e.pageX,o=this._draggingMouseOffset.e.pageY,r=this._draggingMouseOffset.offset.x,i=this._draggingMouseOffset.offset.y,a=this._draggingMouseOffset.viewport.offset;e&&r&&(r>0?n=a.right+this._moveDistanceForOneCell.x:n=a.left-this._moveDistanceForOneCell.x),t&&i&&(i>0?o=a.top-this._moveDistanceForOneCell.y:o=a.bottom+this._moveDistanceForOneCell.y),this.handleDragTo({pageX:n,pageY:o},this._draggingMouseOffset.dd)}stopIntervalTimer(){this._autoScrollTimerId&&(window.clearInterval(this._autoScrollTimerId),this._autoScrollTimerId=void 0)}handleDragTo(e,t){let n=e?.touches?.[0]??e,o=ti.offset(this._activeCanvas),r=this._grid.getCellFromPoint(n.pageX-(o?.left??0)+this._columnOffset,n.pageY-(o?.top??0)+this._rowOffset);if(!(this._gridOptions.frozenColumn>=0&&!this._isRightCanvas&&r.cell>this._gridOptions.frozenColumn||this._isRightCanvas&&r.cell<=this._gridOptions.frozenColumn)&&!(this._gridOptions.frozenRow>=0&&!this._isBottomCanvas&&r.row>=this._gridOptions.frozenRow||this._isBottomCanvas&&r.row<this._gridOptions.frozenRow)){if(this._options.autoScroll&&this._draggingMouseOffset){let i=this._grid.getCellNodeBox(r.row,r.cell);if(!i)return;let a=this._draggingMouseOffset.viewport;(i.left<a.left||i.right>a.right||i.top<a.top||i.bottom>a.bottom)&&this._grid.scrollCellIntoView(r.row,r.cell)}if(this._grid.canCellBeSelected(r.row,r.cell)&&t?.range){t.range.end=r;let i=new id(t.range.start.row??0,t.range.start.cell??0,r.row,r.cell);this._decorator.show(i),this.onCellRangeSelecting.notify({range:i})}}}hasRowMoveManager(){return!!(this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager"))}handleDragEnd(e,t){this._decorator.hide(),this._dragging&&(this._dragging=!1,e.stopImmediatePropagation(),this.stopIntervalTimer(),this.onCellRangeSelected.notify({range:new id(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},tN=ac,nN=ua,rr=co,oN=class{constructor(e){E(this,"pluginName","CheckboxSelectColumn"),E(this,"_dataView"),E(this,"_grid"),E(this,"_isUsingDataView",!1),E(this,"_selectableOverride",null),E(this,"_headerRowNode"),E(this,"_selectAll_UID"),E(this,"_handler",new nN),E(this,"_selectedRowsLookup",{}),E(this,"_checkboxColumnCellIndex",null),E(this,"_options"),E(this,"_defaults",{columnId:"_checkbox_selector",cssClass:void 0,hideSelectAllCheckbox:!1,name:"",toolTip:"Select/Deselect All",width:30,reorderable:!1,applySelectOnAllPages:!1,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0}),E(this,"_isSelectAllChecked",!1),E(this,"_bindingEventService"),this._bindingEventService=new tN,this._options=rr.extend(!0,{},this._defaults,e),this._selectAll_UID=this.createUID(),typeof this._options.selectableOverride=="function"&&this.selectableOverride(this._options.selectableOverride)}init(e){this._grid=e,this._isUsingDataView=!Array.isArray(e.getData()),this._isUsingDataView&&(this._dataView=e.getData()),this._handler.subscribe(this._grid.onSelectedRowsChanged,this.handleSelectedRowsChanged.bind(this)).subscribe(this._grid.onClick,this.handleClick.bind(this)).subscribe(this._grid.onKeyDown,this.handleKeyDown.bind(this)).subscribe(this._grid.onAfterSetColumns,()=>this.renderSelectAllCheckbox(this._isSelectAllChecked)),this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages&&this._handler.subscribe(this._dataView.onSelectedRowIdsChanged,this.handleDataViewSelectedIdsChanged.bind(this)).subscribe(this._dataView.onPagingInfoChanged,this.handleDataViewSelectedIdsChanged.bind(this)),this._options.hideInFilterHeaderRow||this.addCheckboxToFilterHeaderRow(e),this._options.hideInColumnTitleRow||this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}getOptions(){return this._options}setOptions(e){if(this._options=rr.extend(!0,{},this._options,e),this._options.hideSelectAllCheckbox)this.hideSelectAllFromColumnHeaderTitleRow(),this.hideSelectAllFromColumnHeaderFilterRow();else if(this._options.hideInColumnTitleRow?(this.hideSelectAllFromColumnHeaderTitleRow(),this._options.name&&this._grid.updateColumnHeader(this._options.columnId||"",this._options.name,"")):(this.renderSelectAllCheckbox(this._isSelectAllChecked),this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))),this._options.hideInFilterHeaderRow)this.hideSelectAllFromColumnHeaderFilterRow();else{let t=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");if(t){t.style.display="flex";let n=t.querySelector('input[type="checkbox"]');n&&(n.checked=this._isSelectAllChecked)}}}hideSelectAllFromColumnHeaderTitleRow(){this._grid.updateColumnHeader(this._options.columnId||"",this._options.name||"","")}hideSelectAllFromColumnHeaderFilterRow(){let e=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");e&&(e.style.display="none")}handleSelectedRowsChanged(){let e=this._grid.getSelectedRows(),t={},n=0,o=0,r=0,i=0;if(typeof this._selectableOverride=="function")for(r=0;r<this._grid.getDataLength();r++){let l=this._grid.getDataItem(r);this.checkSelectableOverride(o,l,this._grid)||i++}let a=[];for(o=0;o<e.length;o++){n=e[o];let l=this._grid.getDataItem(n);this.checkSelectableOverride(o,l,this._grid)?(t[n]=!0,t[n]!==this._selectedRowsLookup[n]&&(this._grid.invalidateRow(n),delete this._selectedRowsLookup[n])):a.push(n)}if(typeof this._selectedRowsLookup=="object"&&Object.keys(this._selectedRowsLookup).forEach(l=>{l!==void 0&&this._grid.invalidateRow(+l)}),this._selectedRowsLookup=t,this._grid.render(),this._isSelectAllChecked=(e?.length??0)+i>=this._grid.getDataLength(),(!this._isUsingDataView||!this._options.applySelectOnAllPages)&&(!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow)){let l=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);l&&(l.checked=this._isSelectAllChecked)}if(a.length>0){for(o=0;o<a.length;o++){let l=e.indexOf(a[o]);e.splice(l,1)}this._grid.setSelectedRows(e,"click.cleanup")}}handleDataViewSelectedIdsChanged(){let e=this._dataView.getAllSelectedFilteredIds(),t=this._dataView.getFilteredItems(),n=0;if(typeof this._selectableOverride=="function"&&e.length>0)for(let o=0;o<this._dataView.getItemCount();o++){let r=this._dataView.getItemByIdx(o),i=this._dataView.getIdPropertyName(),a=r[i];t.findIndex(function(l){return l[i]===a})>=0&&!this.checkSelectableOverride(o,r,this._grid)&&n++}if(this._isSelectAllChecked=(e&&e.length)+n>=t.length,!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow){let o=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);o&&(o.checked=this._isSelectAllChecked)}}handleKeyDown(e,t){e.which===32&&this._grid.getColumns()[t.cell].id===this._options.columnId&&((!this._grid.getEditorLock().isActive()||this._grid.getEditorLock().commitCurrentEdit())&&this.toggleRowSelection(t.row),e.preventDefault(),e.stopImmediatePropagation())}handleClick(e,t){if(this._grid.getColumns()[t.cell].id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}this.toggleRowSelection(t.row),e.stopPropagation(),e.stopImmediatePropagation()}}toggleRowSelection(e){let t=this._grid.getDataItem(e);if(this.checkSelectableOverride(e,t,this._grid)){if(this._selectedRowsLookup[e]){let n=this._grid.getSelectedRows().filter(o=>o!==e);this._grid.setSelectedRows(n,"click.toggle")}else this._grid.setSelectedRows(this._grid.getSelectedRows().concat(e),"click.toggle");this._grid.setActiveCell(e,this.getCheckboxColumnCellIndex())}}selectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]||(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().concat(t),"SlickCheckboxSelectColumn.selectRows")}deSelectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]&&(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().filter(n=>t.indexOf(n)<0),"SlickCheckboxSelectColumn.deSelectRows")}handleHeaderClick(e,t){if(t.column.id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}let n=e.target.checked,o=n?"click.selectAll":"click.unselectAll",r=[];if(n){for(let i=0;i<this._grid.getDataLength();i++){let a=this._grid.getDataItem(i);!a.__group&&!a.__groupTotals&&this.checkSelectableOverride(i,a,this._grid)&&r.push(i)}n=!0}if(this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages){let i=[],a=this._dataView.getFilteredItems();for(let l=0;l<a.length;l++){let d=a[l];this.checkSelectableOverride(l,d,this._grid)&&i.push(d[this._dataView.getIdPropertyName()])}this._dataView.setSelectedIds(i,{isRowBeingAdded:n})}this._grid.setSelectedRows(r,o),e.stopPropagation(),e.stopImmediatePropagation()}}getCheckboxColumnCellIndex(){if(this._checkboxColumnCellIndex===null){this._checkboxColumnCellIndex=0;let e=this._grid.getColumns();for(let t=0;t<e.length;t++)e[t].id===this._options.columnId&&(this._checkboxColumnCellIndex=t)}return this._checkboxColumnCellIndex}createCheckboxElement(e,t=!1){let n=new DocumentFragment;return n.appendChild(rr.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(rr.createDomElement("label",{htmlFor:e})),n}getColumnDefinition(){return{id:this._options.columnId,reorderable:this._options.reorderable,name:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?this._options.name||"":this.createCheckboxElement(`header-selector${this._selectAll_UID}`),toolTip:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?"":this._options.toolTip,field:"sel",width:this._options.width,resizable:!1,sortable:!1,cssClass:this._options.cssClass,hideSelectAllCheckbox:this._options.hideSelectAllCheckbox,formatter:this.checkboxSelectionFormatter.bind(this),excludeFromColumnPicker:this._options.excludeFromColumnPicker??!0,excludeFromGridMenu:this._options.excludeFromGridMenu??!0,excludeFromHeaderMenu:this._options.excludeFromHeaderMenu??!0}}addCheckboxToFilterHeaderRow(e){this._handler.subscribe(e.onHeaderRowCellRendered,(t,n)=>{if(n.column.field==="sel"){rr.emptyElement(n.node);let o=rr.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(rr.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(rr.createDomElement("label",{htmlFor:`header-filter-selector${this._selectAll_UID}`})),n.node.appendChild(o),this._headerRowNode=n.node,this._bindingEventService.bind(o,"click",r=>this.handleHeaderClick(r,n))}})}createUID(){return Math.round(1e7*Math.random())}checkboxSelectionFormatter(e,t,n,o,r,i){if(r&&this.checkSelectableOverride(e,r,i)){let a=this.createUID()+e;return this.createCheckboxElement(`selector${a}`,!!this._selectedRowsLookup[e])}return null}checkSelectableOverride(e,t,n){return typeof this._selectableOverride=="function"?this._selectableOverride(e,t,n):!0}renderSelectAllCheckbox(e){this._grid.updateColumnHeader(this._options.columnId||"",this.createCheckboxElement(`header-selector${this._selectAll_UID}`,!!e),this._options.toolTip)}selectableOverride(e){this._selectableOverride=e}},rN=ac,sN=Vr,iN=jI,ad=co,aN=class{constructor(e){E(this,"pluginName","HeaderButtons"),E(this,"onCommand",new sN("onCommand")),E(this,"_grid"),E(this,"_handler",new iN),E(this,"_bindingEventService",new rN),E(this,"_defaults",{buttonCssClass:"slick-header-button"}),E(this,"_options"),this._options=ad.extend(!0,{},this._defaults,e)}init(e){this._grid=e,ad.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...ad.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},lN=ac,ld=VI,cN=ua,In=co,dN=class{constructor(e){E(this,"pluginName","HeaderMenu"),E(this,"onAfterMenuShow",new ld("onAfterMenuShow")),E(this,"onBeforeMenuShow",new ld("onBeforeMenuShow")),E(this,"onCommand",new ld("onCommand")),E(this,"_grid"),E(this,"_gridUid",""),E(this,"_handler",new cN),E(this,"_bindingEventService",new lN),E(this,"_defaults",{buttonCssClass:void 0,buttonImage:void 0,minWidth:100,autoAlign:!0,autoAlignOffset:0,subMenuOpenByEvent:"mouseover"}),E(this,"_options"),E(this,"_activeHeaderColumnElm"),E(this,"_menuElm"),E(this,"_subMenuParentId",""),this._options=In.extend(!0,{},e,this._defaults)}init(e){this._grid=e,this._gridUid=e?.getUID()||"",In.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns()),this._bindingEventService.bind(document.body,"click",this.handleBodyMouseDown.bind(this))}setOptions(e){this._options=In.extend(!0,{},this._options,e)}getGridUidSelector(){let e=this._grid.getUID()||"";return e?`.${e}`:""}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll(),this._menuElm=this._menuElm||document.body.querySelector(`.slick-header-menu${this.getGridUidSelector()}`),this._menuElm?.remove(),this._activeHeaderColumnElm=void 0}destroyAllMenus(){this.destroySubMenus(),this._bindingEventService.unbindAll("parent-menu"),document.querySelectorAll(`.slick-header-menu${this.getGridUidSelector()}`).forEach(e=>e.remove())}destroySubMenus(){this._bindingEventService.unbindAll("sub-menu"),document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(e=>e.remove())}handleBodyMouseDown(e){let t=!1;this._menuElm?.contains(e.target)&&(t=!0),t||document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(n=>{n.contains(e.target)&&(t=!0)}),(this._menuElm!==e.target&&!t&&!e.defaultPrevented||e.target.className==="close")&&this.hideMenu()}hideMenu(){this._menuElm&&(this._menuElm.remove(),this._menuElm=void 0),this._activeHeaderColumnElm?.classList.remove("slick-header-column-active"),this.destroySubMenus()}handleHeaderCellRendered(e,t){let n=t.column?.header?.menu;if(n?.items&&console.warn('[SlickGrid] Header Menu "items" property was deprecated in favor of "commandItems" to align with all other Menu plugins.'),n){if(!this.runOverrideFunctionWhenExists(this._options.menuUsabilityOverride,t))return;let o=document.createElement("div");if(o.className="slick-header-menubutton",o.ariaLabel="Header Menu",o.role="button",!this._options.buttonCssClass&&!this._options.buttonImage&&(this._options.buttonCssClass="caret"),this._options.buttonCssClass){let r=document.createElement("span");r.classList.add(...In.classNameToList(this._options.buttonCssClass)),o.appendChild(r)}this._options.buttonImage&&(o.style.backgroundImage=`url(${this._options.buttonImage})`),this._options.tooltip&&(o.title=this._options.tooltip),this._bindingEventService.bind(o,"click",r=>{this.destroyAllMenus(),this.createParentMenu(r,n,t.column)}),t.node.appendChild(o)}}handleBeforeHeaderCellDestroy(e,t){t.column.header?.menu&&t.node.querySelectorAll(".slick-header-menubutton").forEach(n=>n.remove())}addSubMenuTitleWhenExists(e,t){if(e!=="divider"&&e?.subMenuTitle){let n=document.createElement("div");n.className="slick-menu-title",n.textContent=e.subMenuTitle;let o=e.subMenuTitleCssClass;o&&n.classList.add(...In.classNameToList(o)),t.appendChild(n)}}createParentMenu(e,t,n){let o={grid:this._grid,column:n,menu:t};if(this.onBeforeMenuShow.notify(o,e,this).getReturnValue()===!1)return;this._menuElm=this.createMenu(t.commandItems||t.items,n);let r=this._grid.getContainerNode();r&&r.appendChild(this._menuElm),this.repositionMenu(e,this._menuElm),this.onAfterMenuShow.notify(o,e,this).getReturnValue()!==!1&&(e.preventDefault(),e.stopPropagation())}createMenu(e,t,n=0,o){let r=n>0,i=o?.command,a=n===1&&i?i.replaceAll(" ",""):"";a&&(this._subMenuParentId=a),r&&(a=this._subMenuParentId);let l=`slick-header-menu slick-menu-level-${n} ${this._gridUid}`,d=document.body.querySelector(`.slick-header-menu.slick-menu-level-${n}${this.getGridUidSelector()}`);if(d){if(d.dataset.subMenuParent===a)return d;this.destroySubMenus()}let u=document.createElement("div");u.className=l,n>0&&(u.classList.add("slick-submenu"),a&&(u.dataset.subMenuParent=a)),u.classList.add(this._gridUid),u.role="menu",u.ariaLabel=n>1?"SubMenu":"Header Menu",u.style.minWidth=`${this._options.minWidth}px`,u.setAttribute("aria-expanded","true");let f={grid:this._grid,column:t,menu:{items:e}};o&&n>0&&this.addSubMenuTitleWhenExists(o,u);for(let p=0;p<e.length;p++){let y=!0,w=e[p],b=this.runOverrideFunctionWhenExists(w.itemVisibilityOverride,f),g=this.runOverrideFunctionWhenExists(w.itemUsabilityOverride,f);if(!b)continue;Object.prototype.hasOwnProperty.call(w,"itemUsabilityOverride")&&(w.disabled=!g);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(w.divider||w==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),w.disabled&&v.classList.add("slick-header-menuitem-disabled"),w.hidden&&v.classList.add("slick-header-menuitem-hidden"),w.cssClass&&v.classList.add(...In.classNameToList(w.cssClass)),w.tooltip&&(v.title=w.tooltip||"");let T=document.createElement("div");T.className="slick-header-menuicon",v.appendChild(T),w.iconCssClass&&T.classList.add(...In.classNameToList(w.iconCssClass)),w.iconImage&&(T.style.backgroundImage="url("+w.iconImage+")");let P=document.createElement("span");if(P.className="slick-header-menucontent",P.textContent=w.title||"",v.appendChild(P),w.textCssClass&&P.classList.add(...In.classNameToList(w.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,w,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{w.commandItems||w.items?this.repositionSubMenu(w,t,n,x):r||this.destroySubMenus()}),w.commandItems||w.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...In.classNameToList(this._options.subItemChevronClass)):x.textContent="⮞",v.classList.add("slick-submenu-item"),v.appendChild(x)}}return u}handleMenuItemClick(e,t,n=0,o){if(e!=="divider"&&!e.disabled&&!e.divider){let r=e.command||"";if(In.isDefined(r)&&!e.commandItems&&!e.items){let i={grid:this._grid,column:t,command:r,item:e};this.onCommand.notify(i,o,this),typeof e.action=="function"&&e.action.call(this,o,i),o.defaultPrevented||this.hideMenu()}else e.commandItems||e.items?this.repositionSubMenu(e,t,n,o):this.destroySubMenus()}}repositionSubMenu(e,t,n,o){o.target.classList.contains("slick-header-menubutton")&&this.destroySubMenus();let r=this.createMenu(e.commandItems||e.items||[],t,n+1,e);document.body.appendChild(r),this.repositionMenu(o,r)}repositionMenu(e,t){let n=e.target,o=t.classList.contains("slick-submenu"),r=o?e.target.closest(".slick-header-menuitem"):n,i=In.offset(n),a=this._grid.getGridPosition(),l=t.offsetWidth,d=In.offset(this._menuElm),u=In.offset(r),f=o?u?.top??0:n.clientHeight??i?.top??0+(this._options?.menuOffsetTop??0),p=o?u?.left??0:i?.left??0;if(o&&r){let y=p+Number(l);o&&(y+=r.clientWidth);let w=document.documentElement.clientWidth;(y>=a.width||y>=w?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},uN=eh,cd=lc,hN=av,fN=eN,pN=Vr,mN=zi,gN=ua,dd=Ju,ja=co,yN=class{constructor(e){E(this,"pluginName","RowSelectionModel"),E(this,"onSelectedRangesChanged",new pN("onSelectedRangesChanged")),E(this,"_grid"),E(this,"_ranges",[]),E(this,"_eventHandler",new gN),E(this,"_inHandler",!1),E(this,"_selector"),E(this,"_isRowMoveManagerHandler"),E(this,"_options"),E(this,"_defaults",{selectActiveRow:!0,dragToSelect:!1,autoScrollWhenDrag:!0,cellRangeSelector:void 0}),this._options=ja.extend(!0,{},this._defaults,e)}init(e){if(uN===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');if(this._selector=this._options.cellRangeSelector,this._grid=e,ja.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!hN)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new fN({selectionCss:{border:"none"},autoScroll:this._options.autoScrollWhenDrag})}this._eventHandler.subscribe(this._grid.onActiveCellChanged,this.wrapHandler(this.handleActiveCellChange).bind(this)),this._eventHandler.subscribe(this._grid.onKeyDown,this.wrapHandler(this.handleKeyDown).bind(this)),this._eventHandler.subscribe(this._grid.onClick,this.wrapHandler(this.handleClick).bind(this)),this._selector&&(e.registerPlugin(this._selector),this._selector.onCellRangeSelecting.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.subscribe(this.handleBeforeCellRangeSelected.bind(this)))}destroy(){this._eventHandler.unsubscribeAll(),this._selector&&(this._selector.onCellRangeSelecting.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.unsubscribe(this.handleBeforeCellRangeSelected.bind(this)),this._grid.unregisterPlugin(this._selector),this._selector.destroy&&this._selector.destroy())}wrapHandler(e){return(...t)=>{this._inHandler||(this._inHandler=!0,e.apply(this,t),this._inHandler=!1)}}rangesToRows(e){let t=[];for(let n=0;n<e.length;n++)for(let o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}rowsToRanges(e){let t=[],n=this._grid.getColumns().length-1;return e.forEach(o=>t.push(new dd(o,0,o,n))),t}getRowsRange(e,t){let n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}getSelectedRows(){return this.rangesToRows(this._ranges)}setSelectedRows(e){this.setSelectedRanges(this.rowsToRanges(e),"SlickRowSelectionModel.setSelectedRows")}setSelectedRanges(e,t="SlickRowSelectionModel.setSelectedRanges"){if((!this._ranges||this._ranges.length===0)&&(!e||e.length===0))return;this._ranges=e;let n=new mN(new CustomEvent("click",{detail:{caller:t}}),this._ranges);this.onSelectedRangesChanged.notify(this._ranges,n)}getSelectedRanges(){return this._ranges}refreshSelections(){this.setSelectedRows(this.getSelectedRows())}handleActiveCellChange(e,t){this._options.selectActiveRow&&ja.isDefined(t.row)&&this.setSelectedRanges([new dd(t.row,0,t.row,this._grid.getColumns().length-1)])}handleKeyDown(e){let t=this._grid.getActiveCell();if(this._grid.getOptions().multiSelect&&t&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which===cd.UP||e.which===cd.DOWN)){let n=this.getSelectedRows();n.sort(function(a,l){return a-l}),n.length||(n=[t.row]);let o=n[0],r=n[n.length-1],i;if(e.which===cd.DOWN?i=t.row<r||o===r?++r:++o:i=t.row<r?--r:--o,i>=0&&i<this._grid.getDataLength()){this._grid.scrollRowIntoView(i);let a=this.rowsToRanges(this.getRowsRange(o,r));this.setSelectedRanges(a)}e.preventDefault(),e.stopPropagation()}}handleClick(e){let t=this._grid.getCellFromEvent(e);if(!t||!this._grid.canCellBeActive(t.row,t.cell)||!this._grid.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;let n=this.rangesToRows(this._ranges),o=n.indexOf(t.row);if(o===-1&&(e.ctrlKey||e.metaKey))n.push(t.row),this._grid.setActiveCell(t.row,t.cell);else if(o!==-1&&(e.ctrlKey||e.metaKey))n=n.filter(i=>i!==t.row),this._grid.setActiveCell(t.row,t.cell);else if(n.length&&e.shiftKey){let i=n.pop(),a=Math.min(t.row,i),l=Math.max(t.row,i);n=[];for(let d=a;d<=l;d++)d!==i&&n.push(d);n.push(i),this._grid.setActiveCell(t.row,t.cell)}let r=this.rowsToRanges(n);return this.setSelectedRanges(r),e.stopImmediatePropagation(),!0}handleBeforeCellRangeSelected(e,t){if(!this._isRowMoveManagerHandler){let n=this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager");this._isRowMoveManagerHandler=n?n.isHandlerColumn:ja.noop}if(this._grid.getEditorLock().isActive()||this._isRowMoveManagerHandler(t.cell))return e.stopPropagation(),!1;this._grid.setActiveCell(t.row,t.cell)}handleCellRangeSelected(e,t){if(!this._grid.getOptions().multiSelect||!this._options.selectActiveRow)return!1;this.setSelectedRanges([new dd(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},vN=lc,ud=rv,ni=co,lv=class{constructor(e){E(this,"pluginName","GroupItemMetadataProvider"),E(this,"_grid"),E(this,"_options"),E(this,"_defaults",{checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:this.defaultGroupCellFormatter.bind(this),totalsFormatter:this.defaultTotalsCellFormatter.bind(this),includeHeaderTotals:!1}),this._options=ni.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){ni.extend(!0,this._options,e)}defaultGroupCellFormatter(e,t,n,o,r){if(!this._options.enableExpandCollapse)return r.title;let i=`${r.level*15}px`,a=r.collapsed?this._options.toggleCollapsedCssClass:this._options.toggleExpandedCssClass,l=document.createDocumentFragment();this._options.checkboxSelect&&l.appendChild(ni.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(ni.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=ni.createDomElement("span",{className:this._options.groupTitleCssClass||""});return d.setAttribute("level",r.level),r.title instanceof HTMLElement?d.appendChild(r.title):this._grid.applyHtmlCode(d,r.title??""),l.appendChild(d),l}defaultTotalsCellFormatter(e,t,n,o,r,i){return o?.groupTotalsFormatter?.(r,o,i)??""}init(e){this._grid=e,this._grid.onClick.subscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.subscribe(this.handleGridKeyDown.bind(this))}destroy(){this._grid&&(this._grid.onClick.unsubscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.unsubscribe(this.handleGridKeyDown.bind(this)))}handleGridClick(e,t){let n=e.target,o=this._grid.getDataItem(t.row);if(o&&o instanceof ud&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof ud&&n.classList.contains(this._options.checkboxSelectCssClass||"")){o.selectChecked=!o.selectChecked,n.classList.remove(o.selectChecked?"unchecked":"checked"),n.classList.add(o.selectChecked?"checked":"unchecked");let r=this.dataView.mapItemsToRows(o.rows);o.selectChecked?this._options.checkboxSelectPlugin.selectRows(r):this._options.checkboxSelectPlugin.deSelectRows(r)}}handleGridKeyDown(e){if(this._options.enableExpandCollapse&&e.which===vN.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof ud&&(this.handleDataViewExpandOrCollapse(n),e.stopImmediatePropagation(),e.preventDefault())}}}handleDataViewExpandOrCollapse(e){let t=this._grid.getRenderedRange();this.dataView.setRefreshHints({ignoreDiffsBefore:t.top,ignoreDiffsAfter:t.bottom+1}),e.collapsed?this.dataView.expandGroup(e.groupingKey):this.dataView.collapseGroup(e.groupingKey)}getGroupRowMetadata(e,t,n){let o=e?.level;return{selectable:!1,focusable:this._options.groupFocusable,cssClasses:`${this._options.groupCssClass} slick-group-level-${o}`,formatter:this._options.includeHeaderTotals&&this._options.totalsFormatter||void 0,columns:{0:{colspan:this._options.includeHeaderTotals?"1":"*",formatter:this._options.groupFormatter,editor:null}}}}getTotalsRowMetadata(e,t,n){let o=e?.group?.level;return{selectable:!1,focusable:this._options.totalsFocusable,cssClasses:`${this._options.totalsCssClass} slick-group-level-${o}`,formatter:this._options.totalsFormatter,editor:null}}},$o=Vr,hd=zi,Wp=rv,bN=FI,Wn=co,wN=lv,CN=class{constructor(e,t){this.externalPubSub=t,E(this,"defaults",{globalItemMetadataProvider:null,groupItemMetadataProvider:null,inlineFilters:!1,useCSPSafeFilter:!1}),E(this,"idProperty","id"),E(this,"items",[]),E(this,"rows",[]),E(this,"idxById",new Map),E(this,"rowsById"),E(this,"filter",null),E(this,"filterCSPSafe",null),E(this,"updated",null),E(this,"suspend",!1),E(this,"isBulkSuspend",!1),E(this,"bulkDeleteIds",new Map),E(this,"sortAsc",!0),E(this,"fastSortField"),E(this,"sortComparer"),E(this,"refreshHints",{}),E(this,"prevRefreshHints",{}),E(this,"filterArgs"),E(this,"filteredItems",[]),E(this,"compiledFilter"),E(this,"compiledFilterCSPSafe"),E(this,"compiledFilterWithCaching"),E(this,"compiledFilterWithCachingCSPSafe"),E(this,"filterCache",[]),E(this,"_grid"),E(this,"groupingInfoDefaults",{getter:void 0,formatter:void 0,comparer:(n,o)=>n.value===o.value?0:n.value>o.value?1:-1,predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1}),E(this,"groupingInfos",[]),E(this,"groups",[]),E(this,"toggledGroupsByLevel",[]),E(this,"groupingDelimiter",":|:"),E(this,"selectedRowIds",[]),E(this,"preSelectedRowIdsChangeFn"),E(this,"pagesize",0),E(this,"pagenum",0),E(this,"totalRows",0),E(this,"_options"),E(this,"_container"),E(this,"onBeforePagingInfoChanged"),E(this,"onGroupExpanded"),E(this,"onGroupCollapsed"),E(this,"onPagingInfoChanged"),E(this,"onRowCountChanged"),E(this,"onRowsChanged"),E(this,"onRowsOrCountChanged"),E(this,"onSelectedRowIdsChanged"),E(this,"onSetItemsCalled"),this.onBeforePagingInfoChanged=new $o("onBeforePagingInfoChanged",t),this.onGroupExpanded=new $o("onGroupExpanded",t),this.onGroupCollapsed=new $o("onGroupCollapsed",t),this.onPagingInfoChanged=new $o("onPagingInfoChanged",t),this.onRowCountChanged=new $o("onRowCountChanged",t),this.onRowsChanged=new $o("onRowsChanged",t),this.onRowsOrCountChanged=new $o("onRowsOrCountChanged",t),this.onSelectedRowIdsChanged=new $o("onSelectedRowIdsChanged",t),this.onSetItemsCalled=new $o("onSetItemsCalled",t),this._options=Wn.extend(!0,{},this.defaults,e)}beginUpdate(e){this.suspend=!0,this.isBulkSuspend=e===!0}endUpdate(){let e=this.isBulkSuspend;this.isBulkSuspend=!1,this.suspend=!1,e&&(this.processBulkDelete(),this.ensureIdUniqueness()),this.refresh()}destroy(){this.items=[],this.idxById=null,this.rowsById=null,this.filter=null,this.filterCSPSafe=null,this.updated=null,this.sortComparer=null,this.filterCache=[],this.filteredItems=[],this.compiledFilter=null,this.compiledFilterCSPSafe=null,this.compiledFilterWithCaching=null,this.compiledFilterWithCachingCSPSafe=null,this._grid&&this._grid.onSelectedRowsChanged&&this._grid.onCellCssStylesChanged&&(this._grid.onSelectedRowsChanged.unsubscribe(),this._grid.onCellCssStylesChanged.unsubscribe()),this.onRowsOrCountChanged&&this.onRowsOrCountChanged.unsubscribe()}setRefreshHints(e){this.refreshHints=e}getFilterArgs(){return this.filterArgs}setFilterArgs(e){this.filterArgs=e}processBulkDelete(){if(!this.idxById)return;let e,t,n=0;for(let o=0,r=this.items.length;o<r;o++){if(t=this.items[o],e=t[this.idProperty],e===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.bulkDeleteIds.has(e)?this.idxById.delete(e):(this.items[n]=t,this.idxById.set(e,n),++n)}this.items.length=n,this.bulkDeleteIds=new Map}updateIdxById(e){if(this.isBulkSuspend||!this.idxById)return;e=e||0;let t;for(let n=e,o=this.items.length;n<o;n++){if(t=this.items[n][this.idProperty],t===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.idxById.set(t,n)}}ensureIdUniqueness(){if(this.isBulkSuspend||!this.idxById)return;let e;for(let t=0,n=this.items.length;t<n;t++)if(e=this.items[t][this.idProperty],e===void 0||this.idxById.get(e)!==t)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property")}getItems(){return this.items}getIdPropertyName(){return this.idProperty}setItems(e,t){t!==void 0&&(this.idProperty=t),this.items=this.filteredItems=e,this.onSetItemsCalled.notify({idProperty:this.idProperty,itemCount:this.items.length},null,this),this.idxById=new Map,this.updateIdxById(),this.ensureIdUniqueness(),this.refresh()}setPagingOptions(e){this.onBeforePagingInfoChanged.notify(this.getPagingInfo(),null,this).getReturnValue()!==!1&&(Wn.isDefined(e.pageSize)&&(this.pagesize=e.pageSize,this.pagenum=this.pagesize?Math.min(this.pagenum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1)):0),Wn.isDefined(e.pageNum)&&(this.pagenum=Math.min(e.pageNum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1))),this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),this.refresh())}getPagingInfo(){let e=this.pagesize?Math.max(1,Math.ceil(this.totalRows/this.pagesize)):1;return{pageSize:this.pagesize,pageNum:this.pagenum,totalRows:this.totalRows,totalPages:e,dataView:this}}sort(e,t){this.sortAsc=t,this.sortComparer=e,this.fastSortField=null,t===!1&&this.items.reverse(),this.items.sort(e),t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}fastSort(e,t){this.sortAsc=t,this.fastSortField=e,this.sortComparer=null;let n=Object.prototype.toString;Object.prototype.toString=typeof e=="function"?e:function(){return this[e]},t===!1&&this.items.reverse(),this.items.sort(),Object.prototype.toString=n,t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}reSort(){this.sortComparer?this.sort(this.sortComparer,this.sortAsc):this.fastSortField&&this.fastSort(this.fastSortField,this.sortAsc)}getFilteredItems(){return this.filteredItems}getFilteredItemCount(){return this.filteredItems.length}getFilter(){return this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter}setFilter(e){this.filterCSPSafe=e,this.filter=e,this._options.inlineFilters&&(this.compiledFilterCSPSafe=this.compileFilterCSPSafe,this.compiledFilterWithCachingCSPSafe=this.compileFilterWithCachingCSPSafe,this.compiledFilter=this.compileFilter(this._options.useCSPSafeFilter),this.compiledFilterWithCaching=this.compileFilterWithCaching(this._options.useCSPSafeFilter)),this.refresh()}getGrouping(){return this.groupingInfos}setGrouping(e){this._options.groupItemMetadataProvider||(this._options.groupItemMetadataProvider=new wN),this.groups=[],this.toggledGroupsByLevel=[],e=e||[],this.groupingInfos=e instanceof Array?e:[e];for(let t=0;t<this.groupingInfos.length;t++){let n=this.groupingInfos[t]=Wn.extend(!0,{},this.groupingInfoDefaults,this.groupingInfos[t]);n.getterIsAFn=typeof n.getter=="function",n.compiledAccumulators=[];let o=n.aggregators.length;for(;o--;)n.compiledAccumulators[o]=this.compileAccumulatorLoopCSPSafe(n.aggregators[o]);this.toggledGroupsByLevel[t]={}}this.refresh()}getItemByIdx(e){return this.items[e]}getIdxById(e){return this.idxById?.get(e)}ensureRowsByIdCache(){if(!this.rowsById){this.rowsById={};for(let e=0,t=this.rows.length;e<t;e++)this.rowsById[this.rows[e][this.idProperty]]=e}}getRowByItem(e){return this.ensureRowsByIdCache(),this.rowsById?.[e[this.idProperty]]}getRowById(e){return this.ensureRowsByIdCache(),this.rowsById?.[e]}getItemById(e){return this.items[this.idxById.get(e)]}mapItemsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n][this.idProperty]];Wn.isDefined(r)&&(t[t.length]=r)}return t}mapIdsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n]];Wn.isDefined(r)&&(t[t.length]=r)}return t}mapRowsToIds(e){let t=[];for(let n=0,o=e.length;n<o;n++)if(e[n]<this.rows.length){let r=this.rows[e[n]];t[t.length]=r[this.idProperty]}return t}updateSingleItem(e,t){if(this.idxById){if(!this.idxById.has(e))throw new Error("[SlickGrid DataView] Invalid id");if(e!==t[this.idProperty]){let n=t[this.idProperty];if(!Wn.isDefined(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a null id");if(this.idxById.has(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a non-unique id");this.idxById.set(n,this.idxById.get(e)),this.idxById.delete(e),this.updated?.[e]&&delete this.updated[e],e=n}this.items[this.idxById.get(e)]=t,this.updated||(this.updated={}),this.updated[e]=!0}}updateItem(e,t){this.updateSingleItem(e,t),this.refresh()}updateItems(e,t){if(e.length!==t.length)throw new Error("[SlickGrid DataView] Mismatch on the length of ids and items provided to update");for(let n=0,o=t.length;n<o;n++)this.updateSingleItem(e[n],t[n]);this.refresh()}insertItem(e,t){this.items.splice(e,0,t),this.updateIdxById(e),this.refresh()}insertItems(e,t){Array.prototype.splice.apply(this.items,[e,0].concat(t)),this.updateIdxById(e),this.refresh()}addItem(e){this.items.push(e),this.updateIdxById(this.items.length-1),this.refresh()}addItems(e){this.items=this.items.concat(e),this.updateIdxById(this.items.length-e.length),this.refresh()}deleteItem(e){if(this.idxById)if(this.isBulkSuspend)this.bulkDeleteIds.set(e,!0);else{let t=this.idxById.get(e);if(t===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(e),this.items.splice(t,1),this.updateIdxById(t),this.refresh()}}deleteItems(e){if(!(e.length===0||!this.idxById))if(this.isBulkSuspend)for(let t=0,n=e.length;t<n;t++){let o=e[t];if(this.idxById.get(o)===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.bulkDeleteIds.set(o,!0)}else{let t=[];for(let n=0,o=e.length;n<o;n++){let r=e[n],i=this.idxById.get(r);if(i===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(r),t.push(i)}t.sort();for(let n=t.length-1;n>=0;--n)this.items.splice(t[n],1);this.updateIdxById(t[0]),this.refresh()}}sortedAddItem(e){if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()");this.insertItem(this.sortedIndex(e),e)}sortedUpdateItem(e,t){if(!this.idxById)return;if(!this.idxById.has(e)||e!==t[this.idProperty])throw new Error("[SlickGrid DataView] Invalid or non-matching id "+this.idxById.get(e));if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()");let n=this.getItemById(e);this.sortComparer(n,t)!==0?(this.deleteItem(e),this.sortedAddItem(t)):this.updateItem(e,t)}sortedIndex(e){let t=0,n=this.items.length;for(;t<n;){let o=t+n>>>1;this.sortComparer(this.items[o],e)===-1?t=o+1:n=o}return t}getItemCount(){return this.items.length}getLength(){return this.rows.length}getItem(e){let t=this.rows[e];if(t?.__group&&t.totals&&!t.totals?.initialized){let n=this.groupingInfos[t.level];n.displayTotalsRow||(this.calculateTotals(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t?.__groupTotals&&!t.initialized&&this.calculateTotals(t);return t}getItemMetadata(e){let t=this.rows[e];return t===void 0?null:this._options.globalItemMetadataProvider?.getRowMetadata?this._options.globalItemMetadataProvider.getRowMetadata(t,e):t.__group&&this._options.groupItemMetadataProvider?.getGroupRowMetadata?this._options.groupItemMetadataProvider.getGroupRowMetadata(t,e):t.__groupTotals&&this._options.groupItemMetadataProvider?.getTotalsRowMetadata?this._options.groupItemMetadataProvider.getTotalsRowMetadata(t,e):null}expandCollapseAllGroups(e,t){if(Wn.isDefined(e))this.toggledGroupsByLevel[e]={},this.groupingInfos[e].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:e,groupingKey:null}):this.onGroupExpanded.notify({level:e,groupingKey:null});else for(let n=0;n<this.groupingInfos.length;n++)this.toggledGroupsByLevel[n]={},this.groupingInfos[n].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:n,groupingKey:null}):this.onGroupExpanded.notify({level:n,groupingKey:null});this.refresh()}collapseAllGroups(e){this.expandCollapseAllGroups(e,!0)}expandAllGroups(e){this.expandCollapseAllGroups(e,!1)}expandCollapseGroup(e,t,n){this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed^n,this.refresh()}collapseGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(n=t,o=t.split(this.groupingDelimiter).length-1):(n=e.join(this.groupingDelimiter),o=e.length-1),this.expandCollapseGroup(o,n,!0),this.onGroupCollapsed.notify({level:o,groupingKey:n})}expandGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(o=t.split(this.groupingDelimiter).length-1,n=t):(o=e.length-1,n=e.join(this.groupingDelimiter)),this.expandCollapseGroup(o,n,!1),this.onGroupExpanded.notify({level:o,groupingKey:n})}getGroups(){return this.groups}extractGroups(e,t){let n,o,r=[],i={},a,l=t?t.level+1:0,d=this.groupingInfos[l];for(let u=0,f=d.predefinedValues?.length??0;u<f;u++)o=d.predefinedValues?.[u],n=i[o],n||(n=new Wp,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n);for(let u=0,f=e.length;u<f;u++)a=e[u],o=d.getterIsAFn?d.getter(a):a[d.getter],n=i[o],n||(n=new Wp,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n),n.rows[n.count++]=a;if(l<this.groupingInfos.length-1)for(let u=0;u<r.length;u++)n=r[u],n.groups=this.extractGroups(n.rows,n);return r.length&&this.addTotals(r,l),r.sort(this.groupingInfos[l].comparer),r}calculateTotals(e){let t=e.group,n=this.groupingInfos[t.level??0],o=t.level===this.groupingInfos.length,r,i=n.aggregators.length;if(!o&&n.aggregateChildGroups){let a=t.groups?.length??0;for(;a--;)t.groups[a].totals.initialized||this.calculateTotals(t.groups[a].totals)}for(;i--;)r=n.aggregators[i],r.init(),!o&&n.aggregateChildGroups?n.compiledAccumulators[i].call(r,t.groups):n.compiledAccumulators[i].call(r,t.rows),r.storeResult(e);e.initialized=!0}addGroupTotals(e){let t=this.groupingInfos[e.level],n=new bN;n.group=e,e.totals=n,t.lazyTotalsCalculation||this.calculateTotals(n)}addTotals(e,t){t=t||0;let n=this.groupingInfos[t],o=n.collapsed,r=this.toggledGroupsByLevel[t],i=e.length,a;for(;i--;)a=e[i],!(a.collapsed&&!n.aggregateCollapsed)&&(a.groups&&this.addTotals(a.groups,t+1),n.aggregators?.length&&(n.aggregateEmpty||a.rows.length||a.groups?.length)&&this.addGroupTotals(a),a.collapsed=o^r[a.groupingKey],a.title=n.formatter?n.formatter(a):a.value)}flattenGroupedRows(e,t){t=t||0;let n=this.groupingInfos[t],o=[],r,i=0,a;for(let l=0,d=e.length;l<d;l++){if(a=e[l],o[i++]=a,!a.collapsed){r=a.groups?this.flattenGroupedRows(a.groups,t+1):a.rows;for(let u=0,f=r.length;u<f;u++)o[i++]=r[u]}a.totals&&n.displayTotalsRow&&(!a.collapsed||n.aggregateCollapsed)&&(o[i++]=a.totals)}return o}compileAccumulatorLoopCSPSafe(e){return e.accumulate?function(t){let n;for(let o=0;o<t.length;o++){let r=t[o];n=e.accumulate.call(e,r)}return n}:function(){}}compileFilterCSPSafe(e,t){if(typeof this.filterCSPSafe!="function")return[];let n=[],o=e.length;for(let r=0;r<o;r++)this.filterCSPSafe(e[r],t)&&n.push(e[r]);return n}compileFilter(e=!1){if(e)return null;let t=Wn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args",i),l="compiledFilter";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCaching(e=!1){if(e)return null;let t=Wn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args,_cache",i),l="compiledFilterWithCaching";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCachingCSPSafe(e,t,n){if(typeof this.filterCSPSafe!="function")return[];let o=[],r=e.length;for(let i=0;i<r;i++)(n[i]||this.filterCSPSafe(e[i],t))&&o.push(e[i]);return o}setFunctionName(e,t){try{Object.defineProperty(e,"name",{writable:!0,value:t})}catch{e.name=t}}uncompiledFilter(e,t){let n=[],o=0;for(let r=0,i=e.length;r<i;r++)this.filter?.(e[r],t)&&(n[o++]=e[r]);return n}uncompiledFilterWithCaching(e,t,n){let o=[],r=0,i;for(let a=0,l=e.length;a<l;a++)i=e[a],n[a]?o[r++]=i:this.filter?.(i,t)&&(o[r++]=i,n[a]=!0);return o}getFilteredAndPagedItems(e){if(this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter){let n,o;this._options.useCSPSafeFilter?(n=this._options.inlineFilters?this.compiledFilterCSPSafe:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCachingCSPSafe:this.uncompiledFilterWithCaching):(n=this._options.inlineFilters?this.compiledFilter:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCaching:this.uncompiledFilterWithCaching),this.refreshHints.isFilterNarrowing?this.filteredItems=n.call(this,this.filteredItems,this.filterArgs):this.refreshHints.isFilterExpanding?this.filteredItems=o.call(this,e,this.filterArgs,this.filterCache):this.refreshHints.isFilterUnchanged||(this.filteredItems=n.call(this,e,this.filterArgs))}else this.filteredItems=this.pagesize?e:e.concat();let t;return this.pagesize?(this.filteredItems.length<=this.pagenum*this.pagesize&&(this.filteredItems.length===0?this.pagenum=0:this.pagenum=Math.floor((this.filteredItems.length-1)/this.pagesize)),t=this.filteredItems.slice(this.pagesize*this.pagenum,this.pagesize*this.pagenum+this.pagesize)):t=this.filteredItems,{totalRows:this.filteredItems.length,rows:t}}getRowDiffs(e,t){let n,o,r,i=[],a=0,l=Math.max(t.length,e.length);this.refreshHints?.ignoreDiffsBefore&&(a=Math.max(0,Math.min(t.length,this.refreshHints.ignoreDiffsBefore))),this.refreshHints?.ignoreDiffsAfter&&(l=Math.min(t.length,Math.max(0,this.refreshHints.ignoreDiffsAfter)));for(let d=a,u=e.length;d<l;d++)d>=u?i[i.length]=d:(n=t[d],o=e[d],(!n||this.groupingInfos.length&&(r=n.__nonDataRow||o.__nonDataRow)&&n.__group!==o.__group||n.__group&&!n.equals(o)||r&&(n.__groupTotals||o.__groupTotals)||n[this.idProperty]!==o[this.idProperty]||this.updated?.[n[this.idProperty]])&&(i[i.length]=d));return i}recalc(e){this.rowsById=void 0,(this.refreshHints.isFilterNarrowing!==this.prevRefreshHints.isFilterNarrowing||this.refreshHints.isFilterExpanding!==this.prevRefreshHints.isFilterExpanding)&&(this.filterCache=[]);let t=this.getFilteredAndPagedItems(e);this.totalRows=t.totalRows;let n=t.rows;this.groups=[],this.groupingInfos.length&&(this.groups=this.extractGroups(n),this.groups.length&&(n=this.flattenGroupedRows(this.groups)));let o=this.getRowDiffs(this.rows,n);return this.rows=n,o}refresh(){if(this.suspend)return;let e=Wn.extend(!0,{},this.getPagingInfo()),t=this.rows.length,n=this.totalRows,o=this.recalc(this.items);this.pagesize&&this.totalRows<this.pagenum*this.pagesize&&(this.pagenum=Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1),o=this.recalc(this.items)),this.updated=null,this.prevRefreshHints=this.refreshHints,this.refreshHints={},n!==this.totalRows&&this.onBeforePagingInfoChanged.notify(e,null,this).getReturnValue()!==!1&&this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),t!==this.rows.length&&this.onRowCountChanged.notify({previous:t,current:this.rows.length,itemCount:this.items.length,dataView:this,callingOnRowsChanged:o.length>0},null,this),o.length>0&&this.onRowsChanged.notify({rows:o,itemCount:this.items.length,dataView:this,calledOnRowCountChanged:t!==this.rows.length},null,this),(t!==this.rows.length||o.length>0)&&this.onRowsOrCountChanged.notify({rowsDiff:o,previousRowCount:t,currentRowCount:this.rows.length,itemCount:this.items.length,rowCountChanged:t!==this.rows.length,rowsChanged:o.length>0,dataView:this},null,this)}syncGridSelection(e,t,n){this._grid=e;let o;this.selectedRowIds=this.mapRowsToIds(e.getSelectedRows());let r=a=>{a===!1?this.selectedRowIds=[]:this.selectedRowIds.sort().join(",")!==a.sort().join(",")&&(this.selectedRowIds=a)},i=()=>{if((this.selectedRowIds||[]).length>0&&!o){o=!0;let a=this.mapIdsToRows(this.selectedRowIds||[]);if(!t){let l={grid:this._grid,ids:this.mapRowsToIds(a),rows:a,dataView:this};this.preSelectedRowIdsChangeFn(l),this.onSelectedRowIdsChanged.notify(Object.assign(l,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new hd,this)}e.setSelectedRows(a),o=!1}};return e.onSelectedRowsChanged.subscribe((a,l)=>{if(!o){let d=this.mapRowsToIds(l.rows),u={grid:this._grid,ids:d,rows:l.rows,added:!0,dataView:this};this.preSelectedRowIdsChangeFn(u),this.onSelectedRowIdsChanged.notify(Object.assign(u,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new hd,this)}}),this.preSelectedRowIdsChangeFn=a=>{if(!o){if(o=!0,typeof a.added>"u")r(a.ids);else{let l;if(a.added)n&&e.getOptions().multiSelect?l=(this.selectedRowIds?.filter(d=>this.getRowById(d)===void 0)).concat(a.ids):l=a.ids;else if(n&&e.getOptions().multiSelect){let d=new Set(a.ids);l=this.selectedRowIds?.filter(u=>!d.has(u))}else l=[];r(l)}o=!1}},this.onRowsOrCountChanged.subscribe(i.bind(this)),this.onSelectedRowIdsChanged}getAllSelectedIds(){return this.selectedRowIds}getAllSelectedFilteredIds(){return this.getAllSelectedFilteredItems().map(e=>e[this.idProperty])}setSelectedIds(e,t){let n=t?.isRowBeingAdded,o=t?.shouldTriggerEvent,r=t?.applyRowSelectionToGrid;n!==!1&&(n=!0);let i=this.mapIdsToRows(e),a={grid:this._grid,ids:e,rows:i,added:n,dataView:this};this.preSelectedRowIdsChangeFn?.(a),o!==!1&&this.onSelectedRowIdsChanged.notify(Object.assign(a,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new hd,this),r!==!1&&this._grid&&this._grid.setSelectedRows(i)}getAllSelectedItems(){let e=[];return this.getAllSelectedIds().forEach(t=>{e.push(this.getItemById(t))}),e}getAllSelectedFilteredItems(){if(!Array.isArray(this.selectedRowIds))return[];let e=new Set(this.selectedRowIds);return this.filteredItems.filter(t=>e.has(t[this.idProperty]))||[]}syncGridCellCssStyles(e,t){let n,o,r=a=>{n={},typeof a=="object"&&Object.keys(a).forEach(l=>{if(a){let d=this.rows[l][this.idProperty];n[d]=a[l]}})};r(e.getCellCssStyles(t));let i=()=>{if(typeof n=="object"){o=!0,this.ensureRowsByIdCache();let a={};Object.keys(n).forEach(l=>{let d=this.rowsById?.[l];Wn.isDefined(d)&&(a[d]=n[l])}),e.setCellCssStyles(t,a),o=!1}};e.onCellCssStylesChanged.subscribe((a,l)=>{o||t===l.key&&(l.hash?r(l.hash):(e.onCellCssStylesChanged.unsubscribe(),this.onRowsOrCountChanged.unsubscribe(i)))}),this.onRowsOrCountChanged.subscribe(i.bind(this))}},wl=lc,fd=co,Yd=class Ud{constructor(t){this.args=t,E(this,"input"),E(this,"defaultValue"),E(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=fd.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Hp:zp),this.input.focus(),this.input.select(),this.args.compositeEditorOptions&&this.input.addEventListener("change",this.onChange.bind(this))}onChange(){let t=this.args.grid.getActiveCell();this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(this.args.compositeEditorOptions.formValues,this.serializeValue()),this.args.grid.onCompositeEditorChange.notify({row:t?.row??0,cell:t?.cell??0,item:this.args.item,column:this.args.column,formValues:this.args.compositeEditorOptions.formValues,grid:this.args.grid,editors:this.args.compositeEditorOptions.editors})}destroy(){this.input.removeEventListener("keydown",this.navOnLR?Hp:zp),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return fd.isDefined(t)||(t=Ud.DefaultDecimalPlaces),!t&&t!==0?null:t}loadValue(t){this.defaultValue=t[this.args.column.field];let n=this.getDecimalPlaces();n!==null&&(this.defaultValue||this.defaultValue===0)&&this.defaultValue?.toFixed&&(this.defaultValue=this.defaultValue.toFixed(n)),this.input.value=String(this.defaultValue??""),this.input.defaultValue=String(this.defaultValue??""),this.input.select()}serializeValue(){let t=parseFloat(this.input.value);Ud.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;let n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!(this.input.value===""&&!fd.isDefined(this.defaultValue))&&this.input.value!==this.defaultValue}validate(){if(isNaN(this.input.value))return{valid:!1,msg:"Please enter a valid number"};if(this.args.column.validator){let t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}};E(Yd,"DefaultDecimalPlaces"),E(Yd,"AllowEmptyValue",!1);var Bp=Yd;function Hp(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===wl.LEFT&&t>0||e.keyCode===wl.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function zp(e){(e.keyCode===wl.LEFT||e.keyCode===wl.RIGHT)&&e.stopImmediatePropagation()}var SN=ac,sr=HI,Fe=Vr,oi=zi,_N=WI,_n=iv,mo=lc,xN=BI,RN=Ju,rs=zI,Sr=YI,L=co,pd=UI,Yp=eh,Up=KI,qp=XI,TN=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,E(this,"slickGridVersion","5.15.5"),E(this,"cid",""),E(this,"onActiveCellChanged"),E(this,"onActiveCellPositionChanged"),E(this,"onAddNewRow"),E(this,"onAfterSetColumns"),E(this,"onAutosizeColumns"),E(this,"onBeforeAppendCell"),E(this,"onBeforeCellEditorDestroy"),E(this,"onBeforeColumnsResize"),E(this,"onBeforeDestroy"),E(this,"onBeforeEditCell"),E(this,"onBeforeFooterRowCellDestroy"),E(this,"onBeforeHeaderCellDestroy"),E(this,"onBeforeHeaderRowCellDestroy"),E(this,"onBeforeRemoveCachedRow"),E(this,"onBeforeSetColumns"),E(this,"onBeforeSort"),E(this,"onBeforeUpdateColumns"),E(this,"onCellChange"),E(this,"onCellCssStylesChanged"),E(this,"onClick"),E(this,"onColumnsReordered"),E(this,"onColumnsDrag"),E(this,"onColumnsResized"),E(this,"onColumnsResizeDblClick"),E(this,"onCompositeEditorChange"),E(this,"onContextMenu"),E(this,"onDrag"),E(this,"onDblClick"),E(this,"onDragInit"),E(this,"onDragStart"),E(this,"onDragEnd"),E(this,"onFooterClick"),E(this,"onFooterContextMenu"),E(this,"onFooterRowCellRendered"),E(this,"onHeaderCellRendered"),E(this,"onHeaderClick"),E(this,"onHeaderContextMenu"),E(this,"onHeaderMouseEnter"),E(this,"onHeaderMouseLeave"),E(this,"onHeaderRowCellRendered"),E(this,"onHeaderRowMouseEnter"),E(this,"onHeaderRowMouseLeave"),E(this,"onPreHeaderContextMenu"),E(this,"onPreHeaderClick"),E(this,"onKeyDown"),E(this,"onMouseEnter"),E(this,"onMouseLeave"),E(this,"onRendered"),E(this,"onScroll"),E(this,"onSelectedRowsChanged"),E(this,"onSetOptions"),E(this,"onActivateChangedOptions"),E(this,"onSort"),E(this,"onValidationError"),E(this,"onViewportChanged"),E(this,"scrollbarDimensions"),E(this,"maxSupportedCssHeight"),E(this,"canvas",null),E(this,"canvas_context",null),E(this,"_options"),E(this,"_defaults",{alwaysShowVerticalScroll:!1,alwaysAllowHorizontalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableHtmlRendering:!0,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,autoEditNewRow:!0,autoCommitEdit:!1,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,unorderableColumnCssClass:"unorderable",asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,auto:!1,nonce:"",editorLock:_N,showColumnHeader:!0,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,createTopHeaderPanel:!1,showPreHeaderPanel:!1,showTopHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,preHeaderPanelWidth:"auto",topHeaderPanelHeight:25,topHeaderPanelWidth:"auto",formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",rowHighlightCssClass:"highlight-animate",rowHighlightDuration:400,selectedCellCssClass:"selected",multiSelect:!0,enableCellRowSpan:!1,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,frozenBottom:!1,frozenColumn:-1,frozenRow:-1,frozenRightViewportMinWidth:100,throwWhenFrozenNotAllViewable:!1,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter:this.defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,preventDragFromKeys:["ctrlKey","metaKey"],showCellSelection:!0,viewportClass:void 0,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1,enableMouseWheelScrollHandler:!0,doPaging:!0,autosizeColsMode:_n.LegacyOff,autosizeColPaddingPx:4,rowTopOffsetRenderType:"top",scrollRenderThrottling:10,autosizeTextAvgToMWidthRatio:.75,viewportSwitchToScrollModeWidthPercent:void 0,viewportMinWidthPx:void 0,viewportMaxWidthPx:void 0,suppressCssChangesOnHiddenInit:!1,ffMaxSupportedCssHeight:6e6,maxSupportedCssHeight:1e9,maxPartialRowSpanRemap:5e3,sanitizer:void 0,logSanitizedHtml:!1,mixinDefaults:!0,shadowRoot:void 0}),E(this,"_columnDefaults",{name:"",headerCssClass:null,defaultSortAsc:!0,focusable:!0,hidden:!1,minWidth:30,maxWidth:void 0,rerenderOnResize:!1,reorderable:!0,resizable:!0,sortable:!1,selectable:!0}),E(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:sr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:rs.FirstNRows,rowSelectionCount:100,valueFilterMode:Sr.None,widthEvalMode:pd.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),E(this,"_columnResizeTimer"),E(this,"_executionBlockTimer"),E(this,"_flashCellTimer"),E(this,"_highlightRowTimer"),E(this,"th"),E(this,"h"),E(this,"ph"),E(this,"n"),E(this,"cj"),E(this,"page",0),E(this,"offset",0),E(this,"vScrollDir",1),E(this,"_bindingEventService",new SN),E(this,"initialized",!1),E(this,"_container"),E(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),E(this,"_focusSink"),E(this,"_focusSink2"),E(this,"_groupHeaders",[]),E(this,"_headerScroller",[]),E(this,"_headers",[]),E(this,"_headerRows"),E(this,"_headerRowScroller"),E(this,"_headerRowSpacerL"),E(this,"_headerRowSpacerR"),E(this,"_footerRow"),E(this,"_footerRowScroller"),E(this,"_footerRowSpacerL"),E(this,"_footerRowSpacerR"),E(this,"_preHeaderPanel"),E(this,"_preHeaderPanelScroller"),E(this,"_preHeaderPanelSpacer"),E(this,"_preHeaderPanelR"),E(this,"_preHeaderPanelScrollerR"),E(this,"_preHeaderPanelSpacerR"),E(this,"_topHeaderPanel"),E(this,"_topHeaderPanelScroller"),E(this,"_topHeaderPanelSpacer"),E(this,"_topPanelScrollers"),E(this,"_topPanels"),E(this,"_viewport"),E(this,"_canvas"),E(this,"_style"),E(this,"_boundAncestors",[]),E(this,"stylesheet"),E(this,"columnCssRulesL"),E(this,"columnCssRulesR"),E(this,"viewportH",0),E(this,"viewportW",0),E(this,"canvasWidth",0),E(this,"canvasWidthL",0),E(this,"canvasWidthR",0),E(this,"headersWidth",0),E(this,"headersWidthL",0),E(this,"headersWidthR",0),E(this,"viewportHasHScroll",!1),E(this,"viewportHasVScroll",!1),E(this,"headerColumnWidthDiff",0),E(this,"headerColumnHeightDiff",0),E(this,"cellWidthDiff",0),E(this,"cellHeightDiff",0),E(this,"absoluteColumnMinWidth"),E(this,"hasFrozenRows",!1),E(this,"frozenRowsHeight",0),E(this,"actualFrozenRow",-1),E(this,"paneTopH",0),E(this,"paneBottomH",0),E(this,"viewportTopH",0),E(this,"viewportBottomH",0),E(this,"topPanelH",0),E(this,"headerRowH",0),E(this,"footerRowH",0),E(this,"tabbingDirection",1),E(this,"_activeCanvasNode"),E(this,"_activeViewportNode"),E(this,"activePosX"),E(this,"activePosY"),E(this,"activeRow"),E(this,"activeCell"),E(this,"activeCellNode",null),E(this,"currentEditor",null),E(this,"serializedEditorValue"),E(this,"editController"),E(this,"_prevDataLength",0),E(this,"_prevInvalidatedRowsCount",0),E(this,"_rowSpanIsCached",!1),E(this,"_colsWithRowSpanCache",{}),E(this,"rowsCache",{}),E(this,"renderedRows",0),E(this,"numVisibleRows",0),E(this,"prevScrollTop",0),E(this,"scrollHeight",0),E(this,"scrollTop",0),E(this,"lastRenderedScrollTop",0),E(this,"lastRenderedScrollLeft",0),E(this,"prevScrollLeft",0),E(this,"scrollLeft",0),E(this,"selectionModel"),E(this,"selectedRows",[]),E(this,"plugins",[]),E(this,"cellCssClasses",{}),E(this,"columnsById",{}),E(this,"sortColumns",[]),E(this,"columnPosLeft",[]),E(this,"columnPosRight",[]),E(this,"pagingActive",!1),E(this,"pagingIsLastPage",!1),E(this,"scrollThrottle"),E(this,"h_editorLoader"),E(this,"h_postrender"),E(this,"h_postrenderCleanup"),E(this,"postProcessedRows",{}),E(this,"postProcessToRow",null),E(this,"postProcessFromRow",null),E(this,"postProcessedCleanupQueue",[]),E(this,"postProcessgroupId",0),E(this,"counter_rows_rendered",0),E(this,"counter_rows_removed",0),E(this,"_paneHeaderL"),E(this,"_paneHeaderR"),E(this,"_paneTopL"),E(this,"_paneTopR"),E(this,"_paneBottomL"),E(this,"_paneBottomR"),E(this,"_headerScrollerL"),E(this,"_headerScrollerR"),E(this,"_headerL"),E(this,"_headerR"),E(this,"_groupHeadersL"),E(this,"_groupHeadersR"),E(this,"_headerRowScrollerL"),E(this,"_headerRowScrollerR"),E(this,"_footerRowScrollerL"),E(this,"_footerRowScrollerR"),E(this,"_headerRowL"),E(this,"_headerRowR"),E(this,"_footerRowL"),E(this,"_footerRowR"),E(this,"_topPanelScrollerL"),E(this,"_topPanelScrollerR"),E(this,"_topPanelL"),E(this,"_topPanelR"),E(this,"_viewportTopL"),E(this,"_viewportTopR"),E(this,"_viewportBottomL"),E(this,"_viewportBottomR"),E(this,"_canvasTopL"),E(this,"_canvasTopR"),E(this,"_canvasBottomL"),E(this,"_canvasBottomR"),E(this,"_viewportScrollContainerX"),E(this,"_viewportScrollContainerY"),E(this,"_headerScrollContainer"),E(this,"_headerRowScrollContainer"),E(this,"_footerRowScrollContainer"),E(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),E(this,"_hiddenParents",[]),E(this,"oldProps",[]),E(this,"enforceFrozenRowHeightRecalc",!1),E(this,"columnResizeDragging",!1),E(this,"slickDraggableInstance",null),E(this,"slickMouseWheelInstances",[]),E(this,"slickResizableInstances",[]),E(this,"sortableSideLeftInstance"),E(this,"sortableSideRightInstance"),E(this,"logMessageCount",0),E(this,"logMessageMaxCount",30),E(this,"_pubSubService"),this._container=typeof this.container=="string"?document.querySelector(this.container):this.container,!this._container)throw new Error(`SlickGrid requires a valid container, ${this.container} does not exist in the DOM.`);this._pubSubService=r,this.onActiveCellChanged=new Fe("onActiveCellChanged",r),this.onActiveCellPositionChanged=new Fe("onActiveCellPositionChanged",r),this.onAddNewRow=new Fe("onAddNewRow",r),this.onAfterSetColumns=new Fe("onAfterSetColumns",r),this.onAutosizeColumns=new Fe("onAutosizeColumns",r),this.onBeforeAppendCell=new Fe("onBeforeAppendCell",r),this.onBeforeCellEditorDestroy=new Fe("onBeforeCellEditorDestroy",r),this.onBeforeColumnsResize=new Fe("onBeforeColumnsResize",r),this.onBeforeDestroy=new Fe("onBeforeDestroy",r),this.onBeforeEditCell=new Fe("onBeforeEditCell",r),this.onBeforeFooterRowCellDestroy=new Fe("onBeforeFooterRowCellDestroy",r),this.onBeforeHeaderCellDestroy=new Fe("onBeforeHeaderCellDestroy",r),this.onBeforeHeaderRowCellDestroy=new Fe("onBeforeHeaderRowCellDestroy",r),this.onBeforeRemoveCachedRow=new Fe("onRowRemovedFromCache",r),this.onBeforeSetColumns=new Fe("onBeforeSetColumns",r),this.onBeforeSort=new Fe("onBeforeSort",r),this.onBeforeUpdateColumns=new Fe("onBeforeUpdateColumns",r),this.onCellChange=new Fe("onCellChange",r),this.onCellCssStylesChanged=new Fe("onCellCssStylesChanged",r),this.onClick=new Fe("onClick",r),this.onColumnsReordered=new Fe("onColumnsReordered",r),this.onColumnsDrag=new Fe("onColumnsDrag",r),this.onColumnsResized=new Fe("onColumnsResized",r),this.onColumnsResizeDblClick=new Fe("onColumnsResizeDblClick",r),this.onCompositeEditorChange=new Fe("onCompositeEditorChange",r),this.onContextMenu=new Fe("onContextMenu",r),this.onDrag=new Fe("onDrag",r),this.onDblClick=new Fe("onDblClick",r),this.onDragInit=new Fe("onDragInit",r),this.onDragStart=new Fe("onDragStart",r),this.onDragEnd=new Fe("onDragEnd",r),this.onFooterClick=new Fe("onFooterClick",r),this.onFooterContextMenu=new Fe("onFooterContextMenu",r),this.onFooterRowCellRendered=new Fe("onFooterRowCellRendered",r),this.onHeaderCellRendered=new Fe("onHeaderCellRendered",r),this.onHeaderClick=new Fe("onHeaderClick",r),this.onHeaderContextMenu=new Fe("onHeaderContextMenu",r),this.onHeaderMouseEnter=new Fe("onHeaderMouseEnter",r),this.onHeaderMouseLeave=new Fe("onHeaderMouseLeave",r),this.onHeaderRowCellRendered=new Fe("onHeaderRowCellRendered",r),this.onHeaderRowMouseEnter=new Fe("onHeaderRowMouseEnter",r),this.onHeaderRowMouseLeave=new Fe("onHeaderRowMouseLeave",r),this.onPreHeaderClick=new Fe("onPreHeaderClick",r),this.onPreHeaderContextMenu=new Fe("onPreHeaderContextMenu",r),this.onKeyDown=new Fe("onKeyDown",r),this.onMouseEnter=new Fe("onMouseEnter",r),this.onMouseLeave=new Fe("onMouseLeave",r),this.onRendered=new Fe("onRendered",r),this.onScroll=new Fe("onScroll",r),this.onSelectedRowsChanged=new Fe("onSelectedRowsChanged",r),this.onSetOptions=new Fe("onSetOptions",r),this.onActivateChangedOptions=new Fe("onActivateChangedOptions",r),this.onSort=new Fe("onSort",r),this.onValidationError=new Fe("onValidationError",r),this.onViewportChanged=new Fe("onViewportChanged",r),this.initialize(o)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),L.applyDefaults(this._options,this._defaults)):this._options=L.extend(!0,{},this._defaults,e),this.scrollThrottle=this.actionThrottle(this.render.bind(this),this._options.scrollRenderThrottling),this.maxSupportedCssHeight=this.maxSupportedCssHeight||this.getMaxSupportedCssHeight(),this.validateAndEnforceOptions(),this._columnDefaults.width=this._options.defaultColumnWidth,this._options.suppressCssChangesOnHiddenInit||this.cacheCssForHiddenInit(),this.updateColumnProps(),this._options.enableColumnReorder&&(!Sortable||!Sortable.create))throw new Error("SlickGrid requires Sortable.js module to be loaded");this.editController={commitCurrentEdit:this.commitCurrentEdit.bind(this),cancelCurrentEdit:this.cancelCurrentEdit.bind(this)},L.emptyElement(this._container),this._container.style.outline=String(0),this._container.classList.add(this.uid),this._container.classList.add("ui-widget"),this._container.setAttribute("role","grid");let t=window.getComputedStyle(this._container);/relative|absolute|fixed/.test(t.position)||(this._container.style.position="relative"),this._focusSink=L.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=L.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=L.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||L.hide(this._topHeaderPanelScroller)),this._paneHeaderL=L.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=L.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=L.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=L.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=L.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=L.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=L.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderL),this._preHeaderPanelScroller.appendChild(document.createElement("div")),this._preHeaderPanel=L.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=L.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=L.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(L.hide(this._preHeaderPanelScroller),L.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=L.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=L.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-right"},this._paneHeaderR),this._headerScroller.push(this._headerScrollerL),this._headerScroller.push(this._headerScrollerR),this._headerL=L.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=L.createDomElement("div",{className:"slick-header-columns slick-header-columns-right",role:"row",style:{left:"-1000px"}},this._headerScrollerR),this._headers=[this._headerL,this._headerR],this._headerRowScrollerL=L.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=L.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=L.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=L.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=L.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=L.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=L.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=L.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{L.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{L.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{L.hide(o)}),this._viewportTopL=L.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=L.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=L.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=L.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-right",tabIndex:0},this._paneBottomR),this._viewport=[this._viewportTopL,this._viewportTopR,this._viewportBottomL,this._viewportBottomR],this._options.viewportClass&&this._viewport.forEach(o=>{o.classList.add(...L.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=L.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=L.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=L.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=L.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-right",tabIndex:0},this._viewportBottomR),this._canvas=[this._canvasTopL,this._canvasTopR,this._canvasBottomL,this._canvasBottomR],this.scrollbarDimensions=this.scrollbarDimensions||this.measureScrollbar();let n=this.getCanvasWidth()+this.scrollbarDimensions.width;this._activeCanvasNode=this._canvasTopL,this._topHeaderPanelSpacer&&L.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&L.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{L.width(o,this.getHeadersWidth())}),L.width(this._headerRowSpacerL,n),L.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=L.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=L.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),L.width(this._footerRowSpacerL,n),this._footerRowSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),L.width(this._footerRowSpacerR,n),this._footerRowL=L.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=L.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-right"},this._footerRowScrollerR),this._footerRow=[this._footerRowL,this._footerRowR],this._options.showFooterRow||this._footerRowScroller.forEach(o=>{L.hide(o)})),this._focusSink2=this._focusSink.cloneNode(!0),this._container.appendChild(this._focusSink2),this._options.explicitInitialization||this.finishInitialization()}finishInitialization(){this.initialized||(this.initialized=!0,this.getViewportWidth(),this.getViewportHeight(),this.measureCellPaddingAndBorder(),this.disableSelection(this._headers),this._options.enableTextSelectionOnCells||this._viewport.forEach(e=>{this._bindingEventService.bind(e,"selectstart",t=>{t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement})}),this.setFrozenOptions(),this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setScroller(),this.setOverflow(),this.updateColumnCaches(),this.createColumnHeaders(),this.createColumnFooter(),this.setupColumnSort(),this.createCssRules(),this.resizeCanvas(),this.bindAncestorScrollEvents(),this._bindingEventService.bind(this._container,"resize",this.resizeCanvas.bind(this)),this._viewport.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleScroll.bind(this))}),this._options.enableMouseWheelScrollHandler&&this._viewport.forEach(e=>{this.slickMouseWheelInstances.push(Up({element:e,onMouseWheel:this.handleMouseWheel.bind(this)}))}),this._headerScroller.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleHeaderContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleHeaderClick.bind(this))}),this._headerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleHeaderRowScroll.bind(this))}),this._options.createFooterRow&&(this._footerRow.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleFooterContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleFooterClick.bind(this))}),this._footerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleFooterRowScroll.bind(this))})),this._options.createTopHeaderPanel&&this._bindingEventService.bind(this._topHeaderPanelScroller,"scroll",this.handleTopHeaderPanelScroll.bind(this)),this._options.createPreHeaderPanel&&(this._bindingEventService.bind(this._preHeaderPanelScroller,"scroll",this.handlePreHeaderPanelScroll.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"click",this.handlePreHeaderClick.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"click",this.handlePreHeaderClick.bind(this))),this._bindingEventService.bind(this._focusSink,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(this._focusSink2,"keydown",this.handleKeyDown.bind(this)),this._canvas.forEach(e=>{this._bindingEventService.bind(e,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(e,"click",this.handleClick.bind(this)),this._bindingEventService.bind(e,"dblclick",this.handleDblClick.bind(this)),this._bindingEventService.bind(e,"contextmenu",this.handleContextMenu.bind(this)),this._bindingEventService.bind(e,"mouseover",this.handleCellMouseOver.bind(this)),this._bindingEventService.bind(e,"mouseout",this.handleCellMouseOut.bind(this))}),Yp&&(this.slickDraggableInstance=Yp({containerElement:this._container,allowDragFrom:"div.slick-cell",allowDragFromClosest:"div.slick-cell.dnd, div.slick-cell.cell-reorder",preventDragFromKeys:this._options.preventDragFromKeys,onDragInit:this.handleDragInit.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})),this._options.suppressCssChangesOnHiddenInit||this.restoreCssFromHiddenInit())}cacheCssForHiddenInit(){this._hiddenParents=L.parents(this._container,":hidden"),this.oldProps=[],this._hiddenParents.forEach(e=>{let t={};Object.keys(this.cssShow).forEach(n=>{this.cssShow&&(t[n]=e.style[n],e.style[n]=this.cssShow[n])}),this.oldProps.push(t)})}restoreCssFromHiddenInit(){let e=0;this._hiddenParents&&(this._hiddenParents.forEach(t=>{let n=this.oldProps[e++];Object.keys(this.cssShow).forEach(o=>{this.cssShow&&(t.style[o]=n[o])})}),this._hiddenParents=[])}registerPlugin(e){this.plugins.unshift(e),e.init(this)}unregisterPlugin(e){for(let t=this.plugins.length;t>=0;t--)if(this.plugins[t]===e){this.plugins[t]?.destroy(),this.plugins.splice(t,1);break}}destroy(e){this._bindingEventService.unbindAll(),this.slickDraggableInstance=this.destroyAllInstances(this.slickDraggableInstance),this.slickMouseWheelInstances=this.destroyAllInstances(this.slickMouseWheelInstances),this.slickResizableInstances=this.destroyAllInstances(this.slickResizableInstances),this.getEditorLock()?.cancelCurrentEdit(),this.trigger(this.onBeforeDestroy,{});let t=this.plugins.length;for(;t--;)this.unregisterPlugin(this.plugins[t]);this._options.enableColumnReorder&&typeof this.sortableSideLeftInstance?.destroy=="function"&&(this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy()),this.unbindAncestorScrollEvents(),this._bindingEventService.unbindByEventName(this._container,"resize"),this.removeCssRules(),this._canvas.forEach(r=>{this._bindingEventService.unbindByEventName(r,"keydown"),this._bindingEventService.unbindByEventName(r,"click"),this._bindingEventService.unbindByEventName(r,"dblclick"),this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"mouseover"),this._bindingEventService.unbindByEventName(r,"mouseout")}),this._viewport.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._headerScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._headerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._footerRow&&this._footerRow.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._footerRowScroller&&this._footerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._preHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._preHeaderPanelScroller,"scroll"),this._topHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._topHeaderPanelScroller,"scroll"),this._bindingEventService.unbindByEventName(this._focusSink,"keydown"),this._bindingEventService.unbindByEventName(this._focusSink2,"keydown");let n=this._container.querySelectorAll(".slick-resizable-handle");[].forEach.call(n,r=>{this._bindingEventService.unbindByEventName(r,"dblclick")});let o=this._container.querySelectorAll(".slick-header-column");[].forEach.call(o,r=>{this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave"),this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave")}),L.emptyElement(this._container),this._container.classList.remove(this.uid),this.clearAllTimers(),e&&this.destroyAllElements()}destroyAllInstances(e){if(e){let t=Array.isArray(e)?e:[e],n;for(;L.isDefined(n=t.pop());)n&&typeof n.destroy=="function"&&n.destroy()}return e=Array.isArray(e)?[]:null,e}destroyAllElements(){this._activeCanvasNode=null,this._activeViewportNode=null,this._boundAncestors=null,this._canvas=null,this._canvasTopL=null,this._canvasTopR=null,this._canvasBottomL=null,this._canvasBottomR=null,this._container=null,this._focusSink=null,this._focusSink2=null,this._groupHeaders=null,this._groupHeadersL=null,this._groupHeadersR=null,this._headerL=null,this._headerR=null,this._headers=null,this._headerRows=null,this._headerRowL=null,this._headerRowR=null,this._headerRowSpacerL=null,this._headerRowSpacerR=null,this._headerRowScrollContainer=null,this._headerRowScroller=null,this._headerRowScrollerL=null,this._headerRowScrollerR=null,this._headerScrollContainer=null,this._headerScroller=null,this._headerScrollerL=null,this._headerScrollerR=null,this._hiddenParents=null,this._footerRow=null,this._footerRowL=null,this._footerRowR=null,this._footerRowSpacerL=null,this._footerRowSpacerR=null,this._footerRowScroller=null,this._footerRowScrollerL=null,this._footerRowScrollerR=null,this._footerRowScrollContainer=null,this._preHeaderPanel=null,this._preHeaderPanelR=null,this._preHeaderPanelScroller=null,this._preHeaderPanelScrollerR=null,this._preHeaderPanelSpacer=null,this._preHeaderPanelSpacerR=null,this._topPanels=null,this._topPanelScrollers=null,this._style=null,this._topPanelScrollerL=null,this._topPanelScrollerR=null,this._topPanelL=null,this._topPanelR=null,this._paneHeaderL=null,this._paneHeaderR=null,this._paneTopL=null,this._paneTopR=null,this._paneBottomL=null,this._paneBottomR=null,this._viewport=null,this._viewportTopL=null,this._viewportTopR=null,this._viewportBottomL=null,this._viewportBottomR=null,this._viewportScrollContainerX=null,this._viewportScrollContainerY=null}getOptions(){return this._options}setOptions(e,t,n,o){this.prepareForOptionsChange(),this._options.enableAddRow!==e.enableAddRow&&this.invalidateRow(this.getDataLength()),e.frozenColumn!==void 0&&e.frozenColumn>=0&&(this.getViewports().forEach(i=>i.scrollLeft=0),this.handleScroll());let r=L.extend(!0,{},this._options);this._options=L.extend(this._options,e),this.trigger(this.onSetOptions,{optionsBefore:r,optionsAfter:this._options}),this.internal_setOptions(t,n,o)}activateChangedOptions(e,t,n){this.prepareForOptionsChange(),this.invalidateRow(this.getDataLength()),this.trigger(this.onActivateChangedOptions,{options:this._options}),this.internal_setOptions(e,t,n)}prepareForOptionsChange(){this.getEditorLock().commitCurrentEdit()&&this.makeActiveCellNormal()}internal_setOptions(e,t,n){this._options.showColumnHeader!==void 0&&this.setColumnHeaderVisibility(this._options.showColumnHeader),this.validateAndEnforceOptions(),this.setFrozenOptions(),this._options.frozenBottom!==void 0&&(this.enforceFrozenRowHeightRecalc=!0),this._viewport.forEach(o=>{o.style.overflowY=this._options.autoHeight?"hidden":"auto"}),e||this.render(),this.setScroller(),n||this.setOverflow(),t||this.setColumns(this.columns),this._options.enableMouseWheelScrollHandler&&this._viewport&&(!this.slickMouseWheelInstances||this.slickMouseWheelInstances.length===0)?this._viewport.forEach(o=>{this.slickMouseWheelInstances.push(Up({element:o,onMouseWheel:this.handleMouseWheel.bind(this)}))}):this._options.enableMouseWheelScrollHandler===!1&&this.destroyAllInstances(this.slickMouseWheelInstances)}validateAndEnforceOptions(){this._options.autoHeight&&(this._options.leaveSpaceForNewRows=!1),this._options.forceFitColumns&&(this._options.autosizeColsMode=_n.LegacyForceFit)}setSelectionModel(e){this.selectionModel&&(this.selectionModel.onSelectedRangesChanged.unsubscribe(this.handleSelectedRangesChanged.bind(this)),this.selectionModel.destroy&&this.selectionModel.destroy()),this.selectionModel=e,this.selectionModel&&(this.selectionModel.init(this),this.selectionModel.onSelectedRangesChanged.subscribe(this.handleSelectedRangesChanged.bind(this)))}getSelectionModel(){return this.selectionModel}setPaneFrozenClasses(){let e=this.hasFrozenColumns()?"add":"remove";for(let t of[this._paneHeaderL,this._paneTopL,this._paneBottomL])t.classList[e]("frozen")}hasFrozenColumns(){return this._options.frozenColumn>-1}updateColumnHeader(e,t,n){if(this.initialized){let o=this.getColumnIndex(e);if(!L.isDefined(o))return;let r=this.columns[o],i=this.getColumnByIndex(o);i&&(t!==void 0&&(this.columns[o].name=t),n!==void 0&&(this.columns[o].toolTip=n),this.trigger(this.onBeforeHeaderCellDestroy,{node:i,column:r,grid:this}),i.setAttribute("title",n||""),t!==void 0&&this.applyHtmlCode(i.children[0],t),this.trigger(this.onHeaderCellRendered,{node:i,column:r,grid:this}))}}getHeader(e){if(!e)return this.hasFrozenColumns()?this._headers:this._headerL;let t=this.getColumnIndex(e.id);return this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL}getHeaderColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n=this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?t<=this._options.frozenColumn?t:t-this._options.frozenColumn-1:t;return n.children[o]}getHeaderRow(){return this.hasFrozenColumns()?this._headerRows:this._headerRows[0]}getFooterRow(){return this.hasFrozenColumns()?this._footerRow:this._footerRow[0]}getHeaderRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._headerRowL:(n=this._headerRowR,t-=this._options.frozenColumn+1):n=this._headerRowL,n.children[t]}getFooterRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._footerRowL:(n=this._footerRowR,t-=this._options.frozenColumn+1):n=this._footerRowL,n.children[t]}createColumnFooter(){if(this._options.createFooterRow){this._footerRow.forEach(e=>{e.querySelectorAll(".slick-footerrow-column").forEach(t=>{let n=L.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),L.emptyElement(this._footerRowL),L.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},this.hasFrozenColumns()&&e>this._options.frozenColumn?this._footerRowR:this._footerRowL),o=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;o&&n.classList.add(o),L.storage.put(n,"column",t),this.trigger(this.onFooterRowCellRendered,{node:n,column:t,grid:this})}}}setupColumnSort(){this._headers.forEach(e=>{this._bindingEventService.bind(e,"click",t=>{if(this.columnResizeDragging||t.target.classList.contains("slick-resizable-handle"))return;let n=t.target.closest(".slick-header-column");if(!n)return;let o=L.storage.get(n,"column");if(o.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let r=this.sortColumns.slice(),i=null,a=0;for(;a<this.sortColumns.length;a++)if(this.sortColumns[a].columnId===o.id){i=this.sortColumns[a],i.sortAsc=!i.sortAsc;break}let l=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),l&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!l||!this._options.multiColumnSort)&&this.sortColumns.push(i)):t.metaKey&&this._options.multiColumnSort?i&&this.sortColumns.splice(a,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),i?this.sortColumns.length===0&&this.sortColumns.push(i):(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o},this.sortColumns.push(i)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(u=>{let f=this.columns[this.getColumnIndex(u.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:u.sortAsc}}).filter(u=>u)}:d={multiColumnSort:!1,previousSortColumns:r,columnId:this.sortColumns.length>0?o.id:null,sortCol:this.sortColumns.length>0?o:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=L.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),L.emptyElement(this._headerL),L.emptyElement(this._headerR),this.getHeadersWidth(),L.width(this._headerL,this.headersWidthL),L.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=L.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),L.emptyElement(this._headerRowL),L.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=L.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),L.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=L.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),L.emptyElement(this._footerRowR)));for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(t.hidden)continue;let n=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerRowL:this._headerRowR:this._headerRowL,r=L.createDomElement("div",{id:`${this.uid+t.id}`,dataset:{id:String(t.id)},role:"columnheader",className:"ui-state-default slick-state-default slick-header-column"},n);t.toolTip&&(r.title=t.toolTip),t.reorderable||r.classList.add(this._options.unorderableColumnCssClass);let i=L.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),L.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...L.classNameToList(a)),a=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null,a&&r.classList.add(a),this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseEnter.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseLeave.bind(this)),L.storage.put(r,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(l=>{t.headerCellAttrs.hasOwnProperty(l)&&r.setAttribute(l,t.headerCellAttrs[l])}),t.sortable&&(r.classList.add("slick-header-sortable"),L.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&L.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let l=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&l.classList.add(d),this._bindingEventService.bind(l,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(l,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),L.storage.put(l,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:l,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let l=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},l);L.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,n=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,o=!1,r={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:i=>!i.related.classList.contains(this._options.unorderableColumnCssClass),onStart:i=>{i.item.classList.add("slick-header-column-active"),o=!this.hasFrozenColumns()||L.offset(i.item).left>L.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<L.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(n,100)):(window.clearInterval(e),e=null)},onEnd:i=>{if(i.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let a=this.sortableSideLeftInstance?.toArray()??[];a=a.concat(this.sortableSideRightInstance?.toArray()??[]);let l=[];for(let d=0;d<a.length;d++)l.push(this.columns[this.getColumnIndex(a[d])]);this.setColumns(l),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),i.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,r),this.sortableSideRightInstance=Sortable.create(this._headerR,r)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof qp>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let w=L.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(w,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(qp({resizeableElement:y,resizeableHandleElement:w,onResizeStart:(b,g)=>{let v=b.touches?b.changedTouches[0]:b;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,g.resizeableElement.classList.add("slick-header-column-active");let T=null,P=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(T=0,P=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(P!==null&&(n.maxWidth?P+=n.maxWidth-(n.previousWidth||0):P=null),T+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let x=0,S=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(S!==null&&(n.maxWidth?S+=n.maxWidth-(n.previousWidth||0):S=null),x+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));T===null&&(T=1e5),x===null&&(x=1e5),P===null&&(P=1e5),S===null&&(S=1e5),i=o+Math.min(T,S),r=o-Math.min(x,P)},onResize:(b,g)=>{let v=b.touches?b.changedTouches[0]:b;this.columnResizeDragging=!0;let T,P=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,D=this.getViewportInnerWidth();if(P<0){for(x=P,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(T=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<T?(x+=(n.previousWidth||0)-T,n.width=T):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=P,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let A=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(A>d&&F<D-this._options.frozenRightViewportMinWidth&&(d=A),n.width=F+this._options.frozenRightViewportMinWidth>D?d:A):n.width=A,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(T=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<T?(x+=(n.previousWidth||0)-T,n.width=T):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0)}this.hasFrozenColumns()&&S!==this.canvasWidthL&&(L.width(this._headerL,S+1e3),L.setStyleSize(this._paneHeaderR,"left",S)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:g.resizeableElement,resizeHandle:g.resizeableHandleElement})},onResizeEnd:(b,g)=>{g.resizeableElement.classList.remove("slick-header-column-active");let v=g.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:v}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let T;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(T=u[e].offsetWidth,n.previousWidth!==T&&n.rerenderOnResize&&this.invalidateAllRows());this.updateCanvasWidth(!0),this.render(),this.trigger(this.onColumnsResized,{triggeredByColumn:v}),window.clearTimeout(this._columnResizeTimer),this._columnResizeTimer=window.setTimeout(()=>{this.columnResizeDragging=!1},300)}}))}}setFrozenOptions(){if(this._options.frozenColumn=this._options.frozenColumn>=0&&this._options.frozenColumn<this.columns.length?parseInt(this._options.frozenColumn,10):-1,this._options.frozenRow>-1){this.hasFrozenRows=!0,this.frozenRowsHeight=this._options.frozenRow*this._options.rowHeight;let e=this.getDataLength();this.actualFrozenRow=this._options.frozenBottom?e-this._options.frozenRow:this._options.frozenRow}else this.hasFrozenRows=!1}autosizeColumn(e,t){let n=null,o=-1;if(typeof e=="number")n=this.columns[e],o=e;else if(typeof e=="string")for(let i=0;i<this.columns.length;i++)this.columns[i].id===e&&(n=this.columns[i],o=i);if(!n)return;let r=this.getCanvasNode(0,0);this.getColAutosizeWidth(n,o,r,t||!1,o)}treatAsLocked(e={}){return!e.ignoreHeaderText&&!e.sizeToRemaining&&e.contentSizePx===e.headerWidthPx&&(e.widthPx??0)<100}autosizeColumns(e,t){let n=!this._hiddenParents?.length;n&&this.cacheCssForHiddenInit(),this.internalAutosizeColumns(e,t),n&&this.restoreCssFromHiddenInit()}internalAutosizeColumns(e,t){if(e=e||this._options.autosizeColsMode,e===_n.LegacyForceFit||e===_n.LegacyOff){this.legacyAutosizeColumns();return}if(e===_n.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let n=this.getCanvasNode(0,0),o=this.getViewportInnerWidth(),r,i,a,l=!1,d=0,u=0,f=0,p=0,y=0;for(r=0;r<this.columns.length;r++)i=this.columns[r],this.getColAutosizeWidth(i,r,n,t||!1,r),y+=i.autoSize?.autosizeMode===sr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===sr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let w=d-u;if(e===_n.FitViewportToCols){let b=d+(this.scrollbarDimensions?.width??0);e=_n.IgnoreViewport,this._options.viewportMaxWidthPx&&b>this._options.viewportMaxWidthPx?(b=this._options.viewportMaxWidthPx,e=_n.FitColsToViewport):this._options.viewportMinWidthPx&&b<this._options.viewportMinWidthPx&&(b=this._options.viewportMinWidthPx,e=_n.FitColsToViewport),L.width(this._container,b)}if(e===_n.FitColsToViewport)if(w>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let b=o-u;i.autoSize?.sizeToRemaining?a=b*(i.autoSize?.widthPx||0)/w:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=_n.IgnoreViewport;else{let b=u-y,g=o-y-f;for(r=0;r<this.columns.length;r++)i=this.columns[r],!(!i||i.hidden)&&(a=i.width||0,i.autoSize?.autosizeMode!==sr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=g/b*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),b-=i.autoSize?.widthPx||0,g-=a)),this.treatAsLocked(i.autoSize)&&(a=i.autoSize?.widthPx||0,a<(i.minWidth||0)&&(a=i.minWidth||0)),i.rerenderOnResize&&i.width!==a&&(l=!0),i.width=a)}if(e===_n.IgnoreViewport)for(r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(a=this.columns[r].autoSize?.widthPx||0,this.columns[r].rerenderOnResize&&this.columns[r].width!==a&&(l=!0),this.columns[r].width=a);this.reRenderColumns(l)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===sr.Locked||i.autosizeMode===sr.Guide)return;let a=this.getDataLength(),l=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===sr.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],l.test(p)&&(p=Date.parse(p)),f=typeof p,f==="object"&&(p instanceof Date&&(f="date"),typeof moment<"u"&&p instanceof moment&&(f="moment")))}f==="boolean"&&(i.colValueArray=[!0,!1]),f==="number"&&(i.valueFilterMode=Sr.GetGreatestAndSub,i.rowSelectionMode=rs.AllRows),f==="string"&&(i.valueFilterMode=Sr.GetLongestText,i.rowSelectionMode=rs.AllRows,i.allowAddlPercent=5),f==="date"&&(i.colValueArray=[new Date(2009,8,30,12,20,20)]),f==="moment"&&typeof moment<"u"&&(i.colValueArray=[moment([2009,8,30,12,20,20])])}let d=i.contentSizePx=this.getColContentSize(e,t,n,o,r);d===0&&(d=i.widthPx||0);let u=i.allowAddlPercent?1+i.allowAddlPercent/100:1;d=d*u+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(i.autosizeMode===sr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=w=>this.getDataItem(w)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===rs.FirstRow&&(p.endIndex=0),y===rs.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===rs.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===Sr.DeDuplicate){let w={};for(l=p.startIndex;l<=p.endIndex;l++)w[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(w);else{p.valueArr=[];for(let b in w)w&&p.valueArr.push(b)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===Sr.GetGreatestAndSub){let w,b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>b&&(w=d,b=Math.abs(d));w=""+w,w=Array(w.length+1).join("9"),w=+w,p.valueArr=[w],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Sr.GetLongestTextAndSub){for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length);d=Array(u+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Sr.GetLongestText){u=0;let w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,w=l);d=p.getRowVal(w),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=L.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=L.createDomElement("div",{className:"slick-cell"},o);r.style.position="absolute",r.style.visibility="hidden",r.style.textOverflow="initial",r.style.whiteSpace="nowrap";let i,a,l=0,d="",u,f,p=e.autoSize.widthEvalMode===pd.TextOnly;if(e.autoSize?.widthEvalMode===pd.Auto){let y=!e.formatterOverride&&!e.formatter,w=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||w}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=L.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let l=L.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(l,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...L.classNameToList(e.headerCssClass)),t=o.offsetWidth,a.removeChild(o)}return t}legacyAutosizeColumns(){let e,t,n=0,o=0,r=0,i=[],a=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){i.push(0);continue}i.push(t.width||0),o+=t.width||0,t.resizable&&(n+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(r=o;o>a&&n;){let d=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e];if(!t.resizable||u<=t.minWidth||u<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(d*(u-f))||1;p=Math.min(p,u-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let d=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e],f;!t.resizable||t.maxWidth<=u?f=0:f=Math.min(Math.floor(d*u)-u,t.maxWidth-u||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let l=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(l=!0),this.columns[e].width=i[e]);this.reRenderColumns(l)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(n=>{for(let o=0;o<n.children.length;o++,e++){let r=n.children[o],i=((t[e]||{}).width||0)-this.headerColumnWidthDiff;L.width(r)!==i&&L.width(r,i)}}),this.updateColumnCaches()}applyColumnWidths(){let e=0,t=0,n;for(let o=0;o<this.columns.length;o++)this.columns[o]?.hidden||(t=this.columns[o].width||0,n=this.getColumnCssRules(o),n.left.style.left=`${e}px`,n.right.style.right=(this._options.frozenColumn!==-1&&o>this._options.frozenColumn?this.canvasWidthR:this.canvasWidthL)-e-t+"px",this._options.frozenColumn!==o&&(e+=this.columns[o].width)),this._options.frozenColumn===o&&(e=0)}setSortColumn(e,t){this.setSortColumns([{columnId:e,sortAsc:t}])}getColumnByIndex(e){let t;return this._headers.every(n=>{let o=n.children.length;return e<o?(t=n.children[e],!1):(e-=o,!0)}),t}setSortColumns(e){this.sortColumns=e;let t=this._options.numberedMultiColumnSort&&this.sortColumns.length>1;this._headers.forEach(o=>{let r=o.querySelectorAll(".slick-header-column-sorted");r.forEach(i=>{i.classList.remove("slick-header-column-sorted")}),r=o.querySelectorAll(".slick-sort-indicator"),r.forEach(i=>{i.classList.remove("slick-sort-indicator-asc"),i.classList.remove("slick-sort-indicator-desc")}),r=o.querySelectorAll(".slick-sort-indicator-numbered"),r.forEach(i=>{i.textContent=""})});let n=1;this.sortColumns.forEach(o=>{L.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(L.isDefined(r)){let i=this.getColumnByIndex(r);if(i){i.classList.add("slick-header-column-sorted");let a=i.querySelector(".slick-sort-indicator");a?.classList.add(o.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),t&&(a=i.querySelector(".slick-sort-indicator-numbered"),a&&(a.textContent=String(n)))}}n++})}getColumns(){return this.columns}getSortColumns(){return this.sortColumns}updateColumnCaches(){this.columnPosLeft=[],this.columnPosRight=[];let e=0;for(let t=0,n=this.columns.length;t<n;t++)!this.columns[t]||this.columns[t].hidden||(this.columnPosLeft[t]=e,this.columnPosRight[t]=e+(this.columns[t].width||0),this._options.frozenColumn===t?e=0:e+=this.columns[t].width||0)}updateColumnProps(){this.columnsById={};for(let e=0;e<this.columns.length;e++){let t=this.columns[e];t.width&&(t.widthRequest=t.width),this._options.mixinDefaults?(L.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),L.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=L.extend({},this._columnDefaults,t),t.autoSize=L.extend({},this._columnAutosizeDefaults,t.autoSize)),this.columnsById[t.id]=e,t.minWidth&&(t.width||0)<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&(t.width||0)>t.maxWidth&&(t.width=t.maxWidth)}}setColumns(e){this.trigger(this.onBeforeSetColumns,{previousColumns:this.columns,newColumns:e,grid:this}),this.columns=e,this.updateColumnsInternal(),this.trigger(this.onAfterSetColumns,{newColumns:e,grid:this})}updateColumns(){this.trigger(this.onBeforeUpdateColumns,{columns:this.columns,grid:this}),this.updateColumnsInternal()}updateColumnsInternal(){this.updateColumnProps(),this.updateColumnCaches(),this.initialized&&(this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setOverflow(),this.invalidateAllRows(),this.createColumnHeaders(),this.createColumnFooter(),this.removeCssRules(),this.createCssRules(),this.resizeCanvas(),this.updateCanvasWidth(),this.applyColumnHeaderWidths(),this.applyColumnWidths(),this.handleScroll(),this.getSelectionModel()?.refreshSelections())}getEditorLock(){return this._options.editorLock}getEditController(){return this.editController}setData(e,t){this.data=e,this.invalidateAllRows(),this.updateRowCount(),t&&this.scrollTo(0)}getData(){return this.data}getDataLength(){return this.data.getLength?this.data.getLength():this.data?.length??0}getDataLengthIncludingAddNew(){return this.getDataLength()+(this._options.enableAddRow&&(!this.pagingActive||this.pagingIsLastPage)?1:0)}getDataItem(e){return this.data.getItem?this.data.getItem(e):this.data[e]}hasDataView(){return!Array.isArray(this.data)}getItemMetadaWhenExists(e){return"getItemMetadata"in this.data?this.data.getItemMetadata(e):null}getFormatter(e,t){let n=this.data?.getItemMetadata?.(e);return(n?.columns&&(n.columns[t.id]||n.columns[this.getColumnIndex(t.id)]))?.formatter||n?.formatter||t.formatter||this._options.formatterFactory?.getFormatter(t)||this._options.defaultFormatter}getEditor(e,t){let n=this.columns[t],o=this.getItemMetadaWhenExists(e)?.columns;return o?.[n.id]?.editor!==void 0?o[n.id].editor:o?.[t]?.editor!==void 0?o[t].editor:n.editor||this._options?.editorFactory?.getEditor(n)}getDataItemValueForColumn(e,t){return this._options.dataItemColumnValueExtractor?this._options.dataItemColumnValueExtractor(e,t):e[t.field]}resetActiveCell(){this.setActiveCellInternal(null,!1)}unsetActiveCell(){L.isDefined(this.activeCellNode)&&(this.makeActiveCellNormal(),this.activeCellNode.classList.remove("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(e=>e.classList.remove("active")))}focus(){this.setFocus()}setFocus(){this.tabbingDirection===-1?this._focusSink.focus():this._focusSink2.focus()}setActiveCellInternal(e,t,n,o,r){if(this.unsetActiveCell(),this.activeCellNode=e,L.isDefined(this.activeCellNode)){let i=L.offset(this.activeCellNode),a=Math.floor(L.offset(L.parents(this.activeCellNode,".grid-canvas")[0]).top),l=L.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&l&&(a-=this._options.frozenBottom?L.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!L.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(u=>u.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(u=>u.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,n,r)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,n,r))}else this.activeRow=this.activeCell=null;o||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let n=this.getDataLength();return!(e<n&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=n||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let n=this.columns[this.activeCell],o=this.getFormatter(this.activeRow,n)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,n),n,t,this);this.applyFormatResultToCellNode(o,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,n){this.makeActiveCellEditable(e,t,n)}makeActiveCellEditable(e,t,n){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let o=this.columns[this.activeCell],r=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:r,column:o,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let i=e||this.getEditor(this.activeRow,this.activeCell);if(!i||typeof i!="function")return;!e&&!i.suppressClearOnEdit&&L.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let l=a&&(a[o.id]||a[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:l,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(d),r&&this.currentEditor&&(this.currentEditor.loadValue(r),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),n=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let o=e.currentEditor.validate();if(o.valid){let r=e.activeRow,i=e.activeCell,a=e.currentEditor,l=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let u={row:r,cell:i,editor:a,serializedValue:l,prevSerializedValue:d,execute:()=>{a.applyValue(t,l),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,d),e.updateRow(r),e.trigger(e.onCellChange,{command:"undo",row:r,cell:i,item:t,column:n})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,n,u)):(u.execute(),e.makeActiveCellNormal(!0))}else{let u={};e.currentEditor.applyValue(u,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:u,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),L.width(e.activeCellNode),e.activeCellNode.classList.add("invalid")),e.trigger(e.onValidationError,{editor:e.currentEditor,cellNode:e.activeCellNode,validationResults:o,row:e.activeRow,cell:e.activeCell,column:n}),e.currentEditor.focus(),!1}e.makeActiveCellNormal(!0)}return!0}cancelCurrentEdit(){return this.makeActiveCellNormal(),!0}getSelectedRows(){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");return this.selectedRows.slice(0)}setSelectedRows(e,t){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");this&&this.getEditorLock&&!this.getEditorLock()?.isActive()&&this.selectionModel.setSelectedRanges(this.rowsToRanges(e),t||"SlickGrid.setSelectedRows")}trigger(e,t,n){let o=n||new oi(n,t),r=t||{};return r.grid=this,e.notify(r,o,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let n=e.getNativeEvent(),o=this.selectedRows.slice(0);this.selectedRows=[];let r={};for(let i=0;i<t.length;i++)for(let a=t[i].fromRow;a<=t[i].toRow;a++){r[a]||(this.selectedRows.push(a),r[a]={});for(let l=t[i].fromCell;l<=t[i].toCell;l++)this.canCellBeSelected(a,l)&&(r[a][this.columns[l].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",r),this.simpleArrayEquals(o,this.selectedRows)){let i=n?.detail?.caller??"click",a=new Set(this.getSelectedRows()),l=new Set(o),d=Array.from(a).filter(f=>!l.has(f)),u=Array.from(l).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:d,changedUnselectedRows:u},e)}}handleMouseWheel(e,t,n,o){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-o*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragInit,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDragStart(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragStart,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===mo.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===mo.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===mo.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===mo.LEFT?t=this.navigateLeft():e.which===mo.RIGHT?t=this.navigateRight():e.which===mo.UP?t=this.navigateUp():e.which===mo.DOWN?t=this.navigateDown():e.which===mo.TAB?t=this.navigateNext():e.which===mo.ENTER&&(this._options.editable&&(this.currentEditor?this.activeRow===this.getDataLength()?this.navigateDown():this.commitEditAndSetFocus():this.getEditorLock()?.commitCurrentEdit()&&this.makeActiveCellEditable(void 0,void 0,e)),t=!0)}else e.which===mo.TAB&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&(t=this.navigatePrev());if(t){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch{}}}handleClick(e){let t=e instanceof oi?e.getNativeEvent():e;if(!this.currentEditor&&(t.target!==document.activeElement||t.target.classList.contains("slick-cell"))){let o=this.getTextSelection();this.setFocus(),this.setTextSelection(o)}let n=this.getCellFromEvent(t);if(!(!n||this.currentEditor!==null&&this.activeRow===n.row&&this.activeCell===n.cell)&&(e=this.trigger(this.onClick,{row:n.row,cell:n.cell},e||t),!e.isImmediatePropagationStopped()&&this.canCellBeActive(n.row,n.cell)&&(!this.getEditorLock()?.isActive()||this.getEditorLock()?.commitCurrentEdit()))){this.scrollRowIntoView(n.row,!1);let o=t.target?.className===xN,r=this.columns[n.cell],i=!!(this._options.editable&&r?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(this.getCellNode(n.row,n.cell),null,o,i,t)}}handleContextMenu(e){let t=e.target.closest(".slick-cell");t&&(this.activeCellNode===t&&this.currentEditor!==null||this.trigger(this.onContextMenu,{},e))}handleDblClick(e){let t=this.getCellFromEvent(e);!t||this.currentEditor!==null&&this.activeRow===t.row&&this.activeCell===t.cell||(this.trigger(this.onDblClick,{row:t.row,cell:t.cell},e),!e.defaultPrevented&&this._options.editable&&this.gotoCell(t.row,t.cell,!0,e))}handleHeaderMouseEnter(e){let t=L.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=L.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=L.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=L.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseLeave,{column:t,grid:this},e)}handleHeaderContextMenu(e){let t=e.target.closest(".slick-header-column"),n=t&&L.storage.get(t,"column");this.trigger(this.onHeaderContextMenu,{column:n},e)}handleHeaderClick(e){if(!this.columnResizeDragging){let t=e.target.closest(".slick-header-column"),n=t&&L.storage.get(t,"column");n&&this.trigger(this.onHeaderClick,{column:n},e)}}handlePreHeaderContextMenu(e){this.trigger(this.onPreHeaderContextMenu,{node:e.target},e)}handlePreHeaderClick(e){this.columnResizeDragging||this.trigger(this.onPreHeaderClick,{node:e.target},e)}handleFooterContextMenu(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&L.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&L.storage.get(t,"column");this.trigger(this.onFooterClick,{column:n},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let n=!1,o=!1,r=()=>{n?o=!0:a()},i=()=>{o=!1},a=()=>{n=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(l,t),e.call(this)},l=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof oi?e.getNativeEvent():e,n=t.touches?t.touches[0]:t,o=t.target.closest(".slick-cell");if(!o)return null;let r=this.getRowFromNode(o.parentNode);if(this.hasFrozenRows){let a=0,l=L.offset(L.parents(o,".grid-canvas")[0]);L.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?L.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-l.left,n.clientY-l.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!L.isDefined(r)||!L.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&L.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!L.isDefined(t)&&!e.innerHTML)return;let o=t;typeof o=="number"||typeof o=="boolean"?e.textContent=o:(o=this.sanitizeHtmlString(t),this._options.enableHtmlRendering&&o?e.innerHTML=o:e.textContent=o)}}getCanvasNode(e,t){return this._getContainerElement(this.getCanvases(),e,t)}getActiveCanvasNode(e){return e===void 0?this._activeCanvasNode:(e instanceof oi&&(e=e.getNativeEvent()),this._activeCanvasNode=e?.target.closest(".grid-canvas"),this._activeCanvasNode)}getCanvases(){return this._canvas}getViewportNode(e,t){return this._getContainerElement(this.getViewports(),e,t)}getViewports(){return this._viewport}getActiveViewportNode(e){return this.setActiveViewportNode(e),this._activeViewportNode}setActiveViewportNode(e){return e instanceof oi&&(e=e.getNativeEvent()),this._activeViewportNode=e?.target.closest(".slick-viewport"),this._activeViewportNode}getHeadersWidth(){this.headersWidth=this.headersWidthL=this.headersWidthR=0;let e=!this._options.autoHeight,t=0,n=this.columns.length;for(t=0;t<n;t++){if(!this.columns[t]||this.columns[t].hidden)continue;let o=this.columns[t].width;this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=o||0:this.headersWidthL+=o||0}return e&&(this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=this.scrollbarDimensions?.width??0:this.headersWidthL+=this.scrollbarDimensions?.width??0),this.hasFrozenColumns()?(this.headersWidthL=this.headersWidthL+1e3,this.headersWidthR=Math.max(this.headersWidthR,this.viewportW)+this.headersWidthL,this.headersWidthR+=this.scrollbarDimensions?.width??0):(this.headersWidthL+=this.scrollbarDimensions?.width??0,this.headersWidthL=Math.max(this.headersWidthL,this.viewportW)+1e3),this.headersWidth=this.headersWidthL+this.headersWidthR,Math.max(this.headersWidth,this.viewportW)+1e3}getCanvasWidth(){let e=this.getViewportInnerWidth(),t=this.columns.length;for(this.canvasWidthL=this.canvasWidthR=0;t--;)!this.columns[t]||this.columns[t].hidden||(this.hasFrozenColumns()&&t>this._options.frozenColumn?this.canvasWidthR+=this.columns[t].width||0:this.canvasWidthL+=this.columns[t].width||0);let n=this.canvasWidthL+this.canvasWidthR;if(this._options.fullWidthRows){let o=Math.max(n,e)-n;o>0&&(n+=o,this.hasFrozenColumns()?this.canvasWidthR+=o:this.canvasWidthL+=o)}return n}updateCanvasWidth(e){let t=this.canvasWidth,n=this.canvasWidthL,o=this.canvasWidthR;this.canvasWidth=this.getCanvasWidth(),this._options.createTopHeaderPanel&&L.width(this._topHeaderPanel,this._options.topHeaderPanelWidth??this.canvasWidth);let r=this.canvasWidth!==t||this.canvasWidthL!==n||this.canvasWidthR!==o;if(r||this.hasFrozenColumns()||this.hasFrozenRows)if(L.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),L.width(this._headerL,this.headersWidthL),L.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=L.width(this._container)||0;if(i>0&&this.canvasWidthL>i&&this._options.throwWhenFrozenNotAllViewable)throw new Error("[SlickGrid] Frozen columns cannot be wider than the actual grid container width. Make sure to have less columns freezed or make your grid container wider");L.width(this._canvasTopR,this.canvasWidthR),L.width(this._paneHeaderL,this.canvasWidthL),L.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),L.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),L.width(this._paneTopL,this.canvasWidthL),L.setStyleSize(this._paneTopR,"left",this.canvasWidthL),L.width(this._paneTopR,this.viewportW-this.canvasWidthL),L.width(this._headerRowScrollerL,this.canvasWidthL),L.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),L.width(this._headerRowL,this.canvasWidthL),L.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(L.width(this._footerRowScrollerL,this.canvasWidthL),L.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),L.width(this._footerRowL,this.canvasWidthL),L.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&L.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),L.width(this._viewportTopL,this.canvasWidthL),L.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(L.width(this._paneBottomL,this.canvasWidthL),L.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),L.width(this._viewportBottomL,this.canvasWidthL),L.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),L.width(this._canvasBottomL,this.canvasWidthL),L.width(this._canvasBottomR,this.canvasWidthR))}else L.width(this._paneHeaderL,"100%"),L.width(this._paneTopL,"100%"),L.width(this._headerRowScrollerL,"100%"),L.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(L.width(this._footerRowScrollerL,"100%"),L.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&L.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),L.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(L.width(this._viewportBottomL,"100%"),L.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),L.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),L.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(L.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),L.width(this._footerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0))),(r||e)&&this.applyColumnWidths()}getPreHeaderPanel(){return this._preHeaderPanel}getPreHeaderPanelLeft(){return this._preHeaderPanel}getPreHeaderPanelRight(){return this._preHeaderPanelR}getTopHeaderPanel(){return this._topHeaderPanel}setPaneVisibility(){this.hasFrozenColumns()?(L.show(this._paneHeaderR),L.show(this._paneTopR),this.hasFrozenRows?(L.show(this._paneBottomL),L.show(this._paneBottomR)):(L.hide(this._paneBottomR),L.hide(this._paneBottomL))):(L.hide(this._paneHeaderR),L.hide(this._paneTopR),L.hide(this._paneBottomR),this.hasFrozenRows?L.show(this._paneBottomL):(L.hide(this._paneBottomR),L.hide(this._paneBottomL)))}setOverflow(){if(this._viewportTopL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportTopR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?this.hasFrozenRows?"scroll":"auto":this.hasFrozenRows?"scroll":"auto",this._viewportBottomL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportBottomR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"auto"):(this.hasFrozenRows,"auto"),this._options.viewportClass){let e=L.classNameToList(this._options.viewportClass);this._viewportTopL.classList.add(...e),this._viewportTopR.classList.add(...e),this._viewportBottomL.classList.add(...e),this._viewportBottomR.classList.add(...e)}}createCssRules(){this._style=document.createElement("style"),this._style.nonce=this._options.nonce||"",(this._options.shadowRoot||document.head).appendChild(this._style);let e=this._options.rowHeight-this.cellHeightDiff,t=[`.${this.uid} .slick-group-header-column { left: 1000px; }`,`.${this.uid} .slick-header-column { left: 1000px; }`,`.${this.uid} .slick-top-panel { height: ${this._options.topPanelHeight}px; }`,`.${this.uid} .slick-preheader-panel { height: ${this._options.preHeaderPanelHeight}px; }`,`.${this.uid} .slick-topheader-panel { height: ${this._options.topHeaderPanelHeight}px; }`,`.${this.uid} .slick-headerrow-columns { height: ${this._options.headerRowHeight}px; }`,`.${this.uid} .slick-footerrow-columns { height: ${this._options.footerRowHeight}px; }`,`.${this.uid} .slick-cell { height: ${e}px; }`,`.${this.uid} .slick-row { height: ${this._options.rowHeight}px; }`],n=this._style.sheet;if(n){t.forEach(o=>{n.insertRule(o)});for(let o=0;o<this.columns.length;o++)!this.columns[o]||this.columns[o].hidden||(n.insertRule(`.${this.uid} .l${o} { }`),n.insertRule(`.${this.uid} .r${o} { }`))}else this.createCssRulesAlternative(t)}createCssRulesAlternative(e){let t=document.createElement("template");t.innerHTML='<style type="text/css" rel="stylesheet" />',this._style=t.content.firstChild,(this._options.shadowRoot||document.head).appendChild(this._style);for(let n=0;n<this.columns.length;n++)!this.columns[n]||this.columns[n].hidden||(e.push(`.${this.uid} .l${n} { }`),e.push(`.${this.uid} .r${n} { }`));this._style.styleSheet?this._style.styleSheet.cssText=e.join(" "):this._style.appendChild(document.createTextNode(e.join(" ")))}getColumnCssRules(e){let t;if(!this.stylesheet){let n=(this._options.shadowRoot||document).styleSheets;for(this._options.devMode&&typeof this._options.devMode?.ownerNodeIndex=="number"&&this._options.devMode.ownerNodeIndex>=0&&(n[this._options.devMode.ownerNodeIndex].ownerNode=this._style),t=0;t<n.length;t++)if((n[t].ownerNode||n[t].owningElement)===this._style){this.stylesheet=n[t];break}if(!this.stylesheet)throw new Error("SlickGrid Cannot find stylesheet.");this.columnCssRulesL=[],this.columnCssRulesR=[];let o=this.stylesheet.cssRules||this.stylesheet.rules,r,i;for(t=0;t<o.length;t++){let a=o[t].selectorText;(r=/\.l\d+/.exec(a))?(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesL[i]=o[t]):(r=/\.r\d+/.exec(a))&&(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesR[i]=o[t])}}return{left:this.columnCssRulesL[e],right:this.columnCssRulesR[e]}}removeCssRules(){this._style?.remove(),this.stylesheet=null}getTopPanel(){return this._topPanels[0]}getTopPanels(){return this._topPanels}togglePanelVisibility(e,t,n,o){let r=o!==!1;if(this._options[e]!==n)if(this._options[e]=n,n){if(r){L.slideDown(t,this.resizeCanvas.bind(this));return}L.show(t),this.resizeCanvas()}else{if(r){L.slideUp(t,this.resizeCanvas.bind(this));return}L.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,n,o,r){let i=this.getDataItem(n),a=n<r&&!i,l="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(l+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(n);d?.cssClasses&&(l+=` ${d.cssClasses}`);let u=L.createDomElement("div",{className:`ui-widget-content ${l}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?u.style.transform=`translateY(${p}px)`:u.style.top=`${p}px`;let y;e.push(u),this.hasFrozenColumns()&&(y=u.cloneNode(!0),t.push(y));let w=this.columns.length,b,g,v,T,P=!0;for(let x=0,S=w;x<S;x++){if(P=!0,T=this.columns[x],!T||T.hidden)continue;g=1,v=1,b=null,d?.columns&&(b=d.columns[T.id]||d.columns[x],g=b?.colspan||1,v=b?.rowspan||1,g==="*"&&(g=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=g;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!T.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(P=!1),P){let D=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(D,n,x,C,v,b,i)}}else(T.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,b,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=L.classNameToList((y?" ":"")+f.addClasses).join(" "));let w=f?.toolTip?`${f.toolTip}`:"",b=L.createDomElement("div",{className:L.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});b.setAttribute("aria-describedby",this.uid+l.id),w&&b.setAttribute("title",w);let g=this.getCellHeight(t,r);if(r>1&&g!==this._options.rowHeight-this.cellHeightDiff&&(b.style.height=`${g||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&b.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(b,v)}e.appendChild(b),f.insertElementAfterTarget&&L.insertAfterElement(b,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):L.emptyElement(l)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,n=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,o=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,r=this._options.showColumnHeader?L.toFloat(L.height(this._headerScroller[0])):0;this.viewportH=L.toFloat(e.height)-L.toFloat(e.paddingTop)-L.toFloat(e.paddingBottom)-this.topPanelH-n-o-this.headerRowH-r-this.footerRowH-t}return this.numVisibleRows=Math.ceil(this.viewportH/this._options.rowHeight),this.viewportH}getViewportInnerWidth(){return this.viewportHasVScroll?this.viewportW-(this.scrollbarDimensions?.width||0):this.viewportW}getViewportWidth(){return this.viewportW=parseFloat(L.innerSize(this._container,"width"))||this._options.devMode&&this._options.devMode.containerClientWidth||0,this.viewportW}resizeCanvas(){if(!this.initialized)return;if(this.paneTopH=0,this.paneBottomH=0,this.viewportTopH=0,this.viewportBottomH=0,this.getViewportWidth(),this.getViewportHeight(),this.hasFrozenRows?this._options.frozenBottom?(this.paneTopH=this.viewportH-this.frozenRowsHeight-(this.scrollbarDimensions?.height??0),this.paneBottomH=this.frozenRowsHeight+(this.scrollbarDimensions?.height??0)):(this.paneTopH=this.frozenRowsHeight,this.paneBottomH=this.viewportH-this.frozenRowsHeight):this.paneTopH=this.viewportH,this.paneTopH+=this.topPanelH+this.headerRowH+this.footerRowH,this.hasFrozenColumns()&&this._options.autoHeight&&(this.paneTopH+=this.scrollbarDimensions?.height??0),this.viewportTopH=this.paneTopH-this.topPanelH-this.headerRowH-this.footerRowH,this._options.autoHeight){if(this.hasFrozenColumns()){let n=this.paneTopH+this._headerScrollerL.offsetHeight;n+=this.getVBoxDelta(this._container),this._options.showPreHeaderPanel&&(n+=this._options.preHeaderPanelHeight),L.height(this._container,n)}this._paneTopL.style.position="relative"}let e=L.height(this._paneHeaderL);e?e+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0:e=(this._options.showHeaderRow?this._options.headerRowHeight:0)+(this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight:0),L.setStyleSize(this._paneTopL,"top",e||e),L.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||L.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=L.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),L.setStyleSize(this._paneTopR,"top",n),L.height(this._paneTopR,this.paneTopH),L.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(L.setStyleSize(this._paneBottomL,"top",t),L.height(this._paneBottomL,this.paneBottomH),L.setStyleSize(this._paneBottomR,"top",t),L.height(this._paneBottomR,this.paneBottomH),L.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(L.width(this._paneBottomL,"100%"),L.height(this._paneBottomL,this.paneBottomH),L.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(L.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(L.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&L.height(this._canvasBottomR,this.frozenRowsHeight)):(L.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&L.height(this._canvasTopR,this.frozenRowsHeight))):L.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===_n.LegacyForceFit&&this.autosizeColumns(),this.updateRowCount(),this.handleScroll(),this.lastRenderedScrollLeft=-1,this.render()}updateRowCount(){if(!this.initialized)return;let e=this.getDataLength();e>0&&e!==this._prevDataLength&&(this._rowSpanIsCached=!1),this._options.enableCellRowSpan&&!this._rowSpanIsCached&&this.remapAllColumnsRowSpan(),this._prevDataLength=e;let t=this.getDataLengthIncludingAddNew(),n=0,o=this.hasFrozenRows&&!this._options.frozenBottom?L.height(this._canvasBottomL):L.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=L.height(this._viewportScrollContainerY),i=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&n*this._options.rowHeight>r,this.makeActiveCellNormal();let a=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let u=+d;u>a&&this.removeRowFromCache(u)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>a&&this.resetActiveCell(),o=this.h,this._options.autoHeight?this.h=this._options.rowHeight*n:(this.th=Math.max(this._options.rowHeight*n,r-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==o||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(L.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&L.height(this._canvasBottomR,this.h)):(L.height(this._canvasTopL,this.h),L.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let l=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:l?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-r+(this.scrollbarDimensions?.height??0)),this.h!==o&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===_n.LegacyForceFit&&i!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let n=this.getVisibleRange(e,t),o=Math.round(this.viewportH/this._options.rowHeight),r=this._options.minRowBuffer;return this.vScrollDir===-1?(n.top-=o,n.bottom+=r):this.vScrollDir===1?(n.top-=r,n.bottom+=o):(n.top-=r,n.bottom+=r),n.top=Math.max(0,n.top),n.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=this.viewportW,n.rightPx+=this.viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(this.canvasWidth,n.rightPx),n}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let n=t.rowNode,o=Array.from(n[0].children);n.length>1&&(o=o.concat(Array.from(n[1].children)));let r=o.length-1;for(;t.cellRenderQueue.length;){let i=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[i]=o[r--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let n=this.rowsCache[t],o=[];Object.keys(n.cellNodesByColumnIdx).forEach(a=>{if(!n.cellNodesByColumnIdx.hasOwnProperty(a))return;let l=+a;if(l<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[l]?.alwaysRenderColumn)return;let d=n.cellColSpans[l];(this.columnPosLeft[l]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(l||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(l)===this.activeCell||o.push(l))});let r,i;for(;L.isDefined(r=o.pop());)i=n.cellNodesByColumnIdx[r],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[r]?this.queuePostProcessedCellForCleanup(i,r,t):i.parentElement?.removeChild(i),delete n.cellColSpans[r],delete n.cellNodesByColumnIdx[r],this.postProcessedRows[t]&&delete this.postProcessedRows[t][r]}cleanUpAndRenderCells(e){let t,n=document.createElement("div"),o=[],r,i,a,l=this.columns.length;for(let f=e.top,p=e.bottom;f<=p;f++){if(t=this.rowsCache[f],!t)continue;this.ensureCellNodesInRowsCache(f),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(f)===null)&&this.cleanUpCells(e,f),r=0;let y=this.getItemMetadaWhenExists(f);y=y?.columns;let w=this.getDataItem(f);for(let b=0,g=l;b<g;b++){if(!this.columns[b]||this.columns[b].hidden)continue;if(this.columnPosLeft[b]>e.rightPx)break;if(L.isDefined(i=t.cellColSpans[b])){b+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[b].id]||y[b],i=a?.colspan??1,i==="*"&&(i=g-b));let v=i;if(!this.getParentRowSpanByCell(f,b)){if(this.columnPosRight[Math.min(g-1,b+v-1)]>e.leftPx){let T=this.getRowspan(f,b);this.appendCellHtml(n,f,b,v,T,a,w),r++}b+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let d,u;for(;L.isDefined(d=o.pop());){t=this.rowsCache[d];let f;for(;L.isDefined(f=t.cellRenderQueue.pop());)u=n.lastChild,u&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(u):t.rowNode[0].appendChild(u),t.cellNodesByColumnIdx[f]=u)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,l=new Set;for(let u=e.top,f=e.bottom;u<=f;u++)if(!(this.rowsCache[u]||this.hasFrozenRows&&this._options.frozenBottom&&u===this.getDataLength())){if(this.renderedRows++,o.push(u),l.add(u),this.rowsCache[u]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(u);p!==null&&l.add(p)}this.appendRowHtml(t,n,u,e,i),a.add(u),this.activeCellNode&&this.activeRow===u&&(r=!0),this.counter_rows_rendered++}let d=this.setDifference(l,a);if(d.size>0&&d.forEach(u=>{this.removeRowFromCache(u),o.push(u),this.rowsCache[u]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,u,e,i)}),o.length){let u=document.createElement("div"),f=document.createElement("div");t.forEach(p=>u.appendChild(p)),n.forEach(p=>f.appendChild(p));for(let p=0,y=o.length;p<y;p++)this.hasFrozenRows&&o[p]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasBottomL.appendChild(u.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasBottomL.appendChild(u.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasTopL.appendChild(u.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasTopL.appendChild(u.firstChild));r&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,n=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?n.style.transform=`translateY(${this.getRowTop(t)}px)`:n.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let n=L.extend(!0,{},t);this._options.frozenBottom?(n.top=this.actualFrozenRow,n.bottom=this.getDataLength()):(n.top=0,n.bottom=this._options.frozenRow),this.cleanUpAndRenderCells(n)}this.cleanUpAndRenderCells(t)}this.renderRows(t),this.hasFrozenRows&&(this._options.frozenBottom?this.renderRows({top:this.actualFrozenRow,bottom:this.getDataLength()-1,leftPx:t.leftPx,rightPx:t.rightPx}):this.renderRows({top:0,bottom:this._options.frozenRow-1,leftPx:t.leftPx,rightPx:t.rightPx})),this.postProcessFromRow=e.top,this.postProcessToRow=Math.min(this.getDataLengthIncludingAddNew()-1,e.bottom),this.startPostProcessing(),this.lastRenderedScrollTop=this.scrollTop,this.lastRenderedScrollLeft=this.scrollLeft,this.trigger(this.onRendered,{startRow:e.top,endRow:e.bottom,grid:this})}getFrozenRowOffset(e){let t=0;return this.hasFrozenRows?this._options.frozenBottom?e>=this.actualFrozenRow?this.h<this.viewportTopH?t=this.actualFrozenRow*this._options.rowHeight:t=this.h:t=0:e>=this.actualFrozenRow?t=this.frozenRowsHeight:t=0:t=0,t}bindAncestorScrollEvents(){let e=this.hasFrozenRows&&!this._options.frozenBottom?this._canvasBottomL:this._canvasTopL;for(;(e=e.parentNode)!==document.body&&e;)(e===this._viewportTopL||e.scrollWidth!==e.clientWidth||e.scrollHeight!==e.clientHeight)&&(this._boundAncestors.push(e),this._bindingEventService.bind(e,"scroll",this.handleActiveCellPositionChange.bind(this)))}unbindAncestorScrollEvents(){this._boundAncestors.forEach(e=>{this._bindingEventService.unbindByEventName(e,"scroll")}),this._boundAncestors=[]}setScroller(){this.hasFrozenColumns()?(this._headerScrollContainer=this._headerScrollerR,this._headerRowScrollContainer=this._headerRowScrollerR,this._footerRowScrollContainer=this._footerRowScrollerR,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomR,this._viewportScrollContainerY=this._viewportTopR):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomR:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopR):(this._headerScrollContainer=this._headerScrollerL,this._headerRowScrollContainer=this._headerRowScrollerL,this._footerRowScrollContainer=this._footerRowScrollerL,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomL,this._viewportScrollContainerY=this._viewportTopL):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomL:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopL)}scrollTo(e){e=Math.max(e,0),e=Math.min(e,(this.th||0)-L.height(this._viewportScrollContainerY)+(this.viewportHasHScroll||this.hasFrozenColumns()?this.scrollbarDimensions?.height??0:0));let t=this.offset;this.offset=Math.round(this.page*(this.cj||0)),this.page=Math.min((this.n||0)-1,Math.floor(e/(this.ph||0)));let n=e-this.offset;if(this.offset!==t){let o=this.getVisibleRange(n);this.cleanupRows(o),this.updateRowPositions()}this.prevScrollTop!==n&&(this.vScrollDir=this.prevScrollTop+t<n+this.offset?1:-1,this.lastRenderedScrollTop=this.scrollTop=this.prevScrollTop=n,this.hasFrozenColumns()&&(this._viewportTopL.scrollTop=n),this.hasFrozenRows&&(this._viewportBottomL.scrollTop=this._viewportBottomR.scrollTop=n),this._viewportScrollContainerY&&(this._viewportScrollContainerY.scrollTop=n),this.trigger(this.onViewportChanged,{}))}handleHeaderRowScroll(){let e=this._headerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handleFooterRowScroll(){let e=this._footerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handlePreHeaderPanelScroll(){this.handleElementScroll(this._preHeaderPanelScroller)}handleTopHeaderPanelScroll(){this.handleElementScroll(this._topHeaderPanelScroller)}handleElementScroll(e){let t=e.scrollLeft;t!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=t)}handleScroll(e){return this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollLeft=this._viewportScrollContainerX.scrollLeft,this._handleScroll(e?"scroll":"system")}_handleScroll(e="system"){let t=this._viewportScrollContainerY.scrollHeight-this._viewportScrollContainerY.clientHeight,n=this._viewportScrollContainerY.scrollWidth-this._viewportScrollContainerY.clientWidth;t=Math.max(0,t),n=Math.max(0,n),this.scrollTop>t&&(this.scrollTop=t,this.scrollHeight=t),this.scrollLeft>n&&(this.scrollLeft=n);let o=Math.abs(this.scrollTop-this.prevScrollTop),r=Math.abs(this.scrollLeft-this.prevScrollLeft);if(r&&(this.prevScrollLeft=this.scrollLeft,this._viewportScrollContainerX.scrollLeft=this.scrollLeft,this._headerScrollContainer.scrollLeft=this.scrollLeft,this._topPanelScrollers[0].scrollLeft=this.scrollLeft,this._options.createFooterRow&&(this._footerRowScrollContainer.scrollLeft=this.scrollLeft),this._options.createPreHeaderPanel&&(this.hasFrozenColumns()?this._preHeaderPanelScrollerR.scrollLeft=this.scrollLeft:this._preHeaderPanelScroller.scrollLeft=this.scrollLeft),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller.scrollLeft=this.scrollLeft),this.hasFrozenColumns()?(this.hasFrozenRows&&(this._viewportTopR.scrollLeft=this.scrollLeft),this._headerRowScrollerR.scrollLeft=this.scrollLeft):(this.hasFrozenRows&&(this._viewportTopL.scrollLeft=this.scrollLeft),this._headerRowScrollerL.scrollLeft=this.scrollLeft)),o&&!this._options.autoHeight)if(this.vScrollDir=this.prevScrollTop<this.scrollTop?1:-1,this.prevScrollTop=this.scrollTop,e==="mousewheel"&&(this._viewportScrollContainerY.scrollTop=this.scrollTop),this.hasFrozenColumns()&&(this.hasFrozenRows&&!this._options.frozenBottom?this._viewportBottomL.scrollTop=this.scrollTop:this._viewportTopL.scrollTop=this.scrollTop),o<this.viewportH)this.scrollTo(this.scrollTop+this.offset);else{let i=this.offset;this.h===this.viewportH?this.page=0:this.page=Math.min(this.n-1,Math.floor(this.scrollTop*((this.th-this.viewportH)/(this.h-this.viewportH))*(1/this.ph))),this.offset=Math.round(this.page*this.cj),i!==this.offset&&this.invalidateAllRows()}if(r||o){let i=Math.abs(this.lastRenderedScrollLeft-this.scrollLeft),a=Math.abs(this.lastRenderedScrollTop-this.scrollTop);(i>20||a>20)&&(this._options.forceSyncScrolling||a<this.viewportH&&i<this.viewportW?this.render():this.scrollThrottle.enqueue(),this.trigger(this.onViewportChanged,{}))}return this.trigger(this.onScroll,{triggeredBy:e,scrollHeight:this.scrollHeight,scrollLeft:this.scrollLeft,scrollTop:this.scrollTop}),!!(r||o)}scrollCellIntoView(e,t,n){if(this.scrollRowIntoView(e,n),t<=this._options.frozenColumn)return;let o=this.getColspan(e,t);this.internalScrollColumnIntoView(this.columnPosLeft[t],this.columnPosRight[t+(o>1?o-1:0)])}internalScrollColumnIntoView(e,t){let n=this.scrollLeft+L.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>n&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let n=[],o=null;for(let r=0,i=this.columns.length;r<i;r++){let a=this._colsWithRowSpanCache[r];if(a)for(let l of Array.from(a)){let[d,u]=l.split(":").map(Number);if(e>=d&&e<=u)if(t==="columns")n.push(r);else{o=d;break}}}return t==="columns"?n:o}getParentRowSpanByCell(e,t,n=!0){let o=null,r=this._colsWithRowSpanCache[t]||new Set;for(let i of Array.from(r)){let[a,l]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=l){o={start:a,end:l,range:i};break}}return o}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(n=>{let o=+n,r=t.columns[o],i=+(r?.colspan||1),a=+(r?.rowspan||1);this.remapRowSpanMetadata(e,o,i,a)})}remapRowSpanMetadata(e,t,n,o){var r,i,a;if(o>1){let l=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(l),n>1)for(let d=1;d<n;d++)(i=this._colsWithRowSpanCache)[a=t+d]??(i[a]=new Set),this._colsWithRowSpanCache[t+d].add(l)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let n=L.height(this._viewportScrollContainerY),o=this.hasFrozenRows&&!this._options.frozenBottom?e-this._options.frozenRow:e,r=o*this._options.rowHeight,i=(o+1)*this._options.rowHeight-n+(this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0);(o+1)*this._options.rowHeight>this.scrollTop+n+this.offset?(this.scrollTo(t?r:i),this.render()):o*this._options.rowHeight<this.scrollTop+this.offset&&(this.scrollTo(t?i:r),this.render())}}scrollRowToTop(e){this.scrollTo(e*this._options.rowHeight),this.render()}scrollPage(e){let t=e*this.numVisibleRows,n=this.scrollTop+this._options.rowHeight-1;if(this.scrollTo((this.getRowFromPosition(n)+t)*this._options.rowHeight),this.render(),this._options.enableCellNavigation&&L.isDefined(this.activeRow)){let o=this.activeRow+t,r=this.getDataLengthIncludingAddNew();o>=r&&(o=r-1),o<0&&(o=0);let i=e===1?this.gotoDown(o-1||0,this.activeCell,this.activePosY,this.activePosX):this.gotoUp(o+1,this.activeCell,this.activePosY,this.activePosX);this.navigateToPos(i)}}navigatePageDown(){this.scrollPage(1)}navigatePageUp(){this.scrollPage(-1)}navigateTop(){this.unsetActiveCell(),this.navigateToRow(0)}navigateBottom(){let e=this.getDataLength()-1,t=this.getParentRowSpanByCell(e,this.activeCell)?.start??e;do if(this._options.enableCellRowSpan&&this.setActiveRow(t),this.navigateToRow(t)&&this.activeCell===this.activePosX||!L.isDefined(this.activeCell))break;while(--t>0)}navigateToRow(e){let t=this.getDataLength();if(!t)return!1;e<0?e=0:e>=t&&(e=t-1),this.scrollCellIntoView(e,0,!0);let n=!L.isDefined(this.activeCell)||!L.isDefined(this.activeRow);if(this._options.enableCellNavigation&&L.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!L.isDefined(this.activeCell)||o===this.activeCell)&&(n=!0)),o+=this.getColspan(e,o);r!==null?(this.setActiveCellInternal(this.getCellNode(e,r)),this.activePosX=i):this.resetActiveCell()}return n}getColspan(e,t){let n=this.getItemMetadaWhenExists(e);if(!n||!n.columns)return 1;t>=this.columns.length&&(t=this.columns.length-1);let o=(n.columns[this.columns[t].id]||n.columns[t])?.colspan;return o==="*"?o=this.columns.length-t:o=o||1,o}queuePostProcessedRowForCleanup(e,t,n){this.postProcessgroupId++,typeof t=="object"&&Object.keys(t).forEach(o=>{t.hasOwnProperty(o)&&this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e.cellNodesByColumnIdx[+o],columnIdx:+o,rowIdx:n})}),e.rowNode||(e.rowNode=[]),this.postProcessedCleanupQueue.push({actionType:"R",groupId:this.postProcessgroupId,node:e.rowNode}),e.rowNode?.forEach(o=>o.remove())}queuePostProcessedCellForCleanup(e,t,n){this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e,columnIdx:t,rowIdx:n}),e.remove()}applyFormatResultToCellNode(e,t,n){if(e==null&&(e=""),Object.prototype.toString.call(e)!=="[object Object]"){this.applyHtmlCode(t,e);return}let o=e.html||e.text;this.applyHtmlCode(t,o),e.removeClasses&&!n&&t.classList.remove(...L.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...L.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,n=this.rowsCache[t];if(!(!n||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(n.cellNodesByColumnIdx).forEach(o=>{if(n.cellNodesByColumnIdx.hasOwnProperty(o)){let r=+o,i=this.columns[r],a=this.postProcessedRows[t][r];if(i.asyncPostRender&&a!=="R"){let l=n.cellNodesByColumnIdx[r];l&&i.asyncPostRender(l,t,this.getDataItem(t),i,a==="C"),this.postProcessedRows[t][r]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(n=>{n.remove()}),t?.actionType==="C"){let n=this.columns[t.columnIdx];n.asyncPostRenderCleanup&&t.node&&n.asyncPostRenderCleanup(t.node,t.rowIdx,n)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let n,o,r;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(i=>{this.rowsCache&&(r=t?.[i],o=e?.[i],r&&Object.keys(r).forEach(a=>{(!o||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.remove(r[a]))}),o&&Object.keys(o).forEach(a=>{(!r||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.add(o[a]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let n=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,n),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,n=250){let o=(r,i)=>{i<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{i%2===0?r.classList.add(this._options.cellFlashingCssClass||""):r.classList.remove(this._options.cellFlashingCssClass||""),o(r,i-1)},n))};if(this.rowsCache[e]){let r=this.getCellNode(e,t);r&&o(r,5)}}highlightRow(e,t){let n=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(n?.rowNode)&&this._options.rowHighlightCssClass&&(n.rowNode.forEach(o=>o.classList.add(...L.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...L.classNameToList(this._options.rowHighlightCssClass)))},t))}_getContainerElement(e,t,n){if(!e)return;t||(t=0),n||(n=0);let o=typeof t=="number"?t:this.getColumnIndex(t),r=this.hasFrozenRows&&n>=this.actualFrozenRow+(this._options.frozenBottom?0:1),i=this.hasFrozenColumns()&&o>this._options.frozenColumn;return e[(r?2:0)+(i?1:0)]}measureScrollbar(){let e="";this._viewport.forEach(r=>e+=r.className);let t=L.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=L.createDomElement("div",{style:{width:"200px",height:"200px",overflow:"auto"}},t),o={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return n.remove(),t.remove(),o}getMaxSupportedCssHeight(){let e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?this._options.ffMaxSupportedCssHeight:this._options.maxSupportedCssHeight,n=L.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;L.height(n,o);let r=L.height(n);if(o>t||r!==o)break;e=o}return n.remove(),e}getUID(){return this.uid}getHeaderColumnWidthDiff(){return this.headerColumnWidthDiff}getScrollbarDimensions(){return this.scrollbarDimensions}getDisplayedScrollbarDimensions(){return{width:this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0,height:this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0}}getAbsoluteColumnMinWidth(){return this.absoluteColumnMinWidth}getVBoxDelta(e){let t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=getComputedStyle(e),o=0;return t.forEach(r=>o+=L.toFloat(n[r])),o}measureCellPaddingAndBorder(){let e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=this._headers[0];this.headerColumnWidthDiff=this.headerColumnHeightDiff=0,this.cellWidthDiff=this.cellHeightDiff=0;let o=L.createDomElement("div",{className:"ui-state-default slick-state-default slick-header-column",style:{visibility:"hidden"},textContent:"-"},n),r=getComputedStyle(o);r.boxSizing!=="border-box"&&(e.forEach(a=>this.headerColumnWidthDiff+=L.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=L.toFloat(r[a]))),o.remove();let i=L.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=L.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=L.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=L.toFloat(r[a]))),i.remove(),this.absoluteColumnMinWidth=Math.max(this.headerColumnWidthDiff,this.cellWidthDiff)}clearAllTimers(){window.clearTimeout(this._columnResizeTimer),window.clearTimeout(this._executionBlockTimer),window.clearTimeout(this._flashCellTimer),window.clearTimeout(this._highlightRowTimer),window.clearTimeout(this.h_editorLoader)}LogColWidths(){let e="Col Widths:";for(let t=0;t<this.columns.length;t++)e+=" "+(this.columns[t].hidden?"H":this.columns[t].width);console.log(e)}simpleArrayEquals(e,t){return Array.isArray(e)&&Array.isArray(t)&&t.sort().toString()!==e.sort().toString()}defaultFormatter(e,t,n){return L.isDefined(n)?(n+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""}cellExists(e,t){return!(e<0||e>=this.getDataLength()||t<0||t>=this.columns.length)}getCellFromNode(e){let t=/l\d+/.exec(e.className);if(!t)throw new Error(`SlickGrid getCellFromNode: cannot get cell - ${e.className}`);return parseInt(t[0].substr(1,t[0].length-1),10)}getRowFromNode(e){for(let t in this.rowsCache)if(this.rowsCache){for(let n in this.rowsCache[t].rowNode)if(this.rowsCache[t].rowNode?.[+n]===e)return t?parseInt(t,10):0}return null}clearTextSelection(){if(document.selection?.empty)try{document.selection.empty()}catch{}else if(window.getSelection){let e=window.getSelection();e?.removeAllRanges&&e.removeAllRanges()}}disableSelection(e){e.forEach(t=>{t.setAttribute("unselectable","on"),t.style.mozUserSelect="none",this._bindingEventService.bind(t,"selectstart",()=>!1)})}getPubSubService(){return this._pubSubService}getCellFromPoint(e,t){let n=this.getRowFromPosition(t),o=0,r=0;for(let i=0;i<this.columns.length&&r<=e;i++)this.columns[i]&&(r+=this.columns[i].width,o++);return o-=1,n<-1&&(n=-1),{row:n,cell:o}}getPluginByName(e){for(let t=this.plugins.length-1;t>=0;t--)if(this.plugins[t]?.pluginName===e)return this.plugins[t]}getContainerNode(){return this._container}getCellHeight(e,t){let n=this._options.rowHeight||0;if(t>1){let o=e+t-1;n=this.getRowBottom(o)-this.getRowTop(e)}else{let o=this.getRowHeight();o!==n-this.cellHeightDiff&&(n=o)}return n-=this.cellHeightDiff,Math.ceil(n)}setDifference(e,t){return new Set(Array.from(e).filter(n=>!t.has(n)))}getCellNodeBox(e,t){if(!this.cellExists(e,t))return null;let n=this.getFrozenRowOffset(e),o=this.getRowTop(e)-n,r=o+this._options.rowHeight-1,i=0;for(let l=0;l<t;l++)!this.columns[l]||this.columns[l].hidden||(i+=this.columns[l].width||0,this._options.frozenColumn===l&&(i=0));let a=i+(this.columns[t]?.width||0);return{top:o,left:i,bottom:r,right:a}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let n=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let o=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&o.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&o.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===n&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,n=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let n=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&n!==e&&(console.log(`sanitizer altered html: ${e} --> ${n}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),n}getRowspan(e,t){let n=1,o=this.getItemMetadaWhenExists(e);return o?.columns&&Object.keys(o.columns).forEach(r=>{let i=Number(r);if(i===t){let a=o.columns[i];n=Number(a?.rowspan||1)}}),n}findFocusableRow(e,t,n){let o=e,r=this._colsWithRowSpanCache[t]||new Set,i=!1;return Array.from(r).forEach(a=>{let[l,d]=a.split(":").map(Number);!i&&e>=l&&e<=d&&(o=n==="up"?l:d,this.canCellBeActive(o,t)&&(i=!0))}),o<0&&(o=0),o}findFirstFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);if(n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)){o=t;break}t+=this.getColspan(n,t)}return{cell:o,row:n}}findLastFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)&&(o=t),t+=this.getColspan(n,t)}return{cell:o,row:n}}rowsToRanges(e){let t=[],n=this.columns.length-1;for(let o=0;o<e.length;o++)t.push(new RN(e[o],0,e[o],n));return t}findSpanStartingCell(e,t){let n=this.getParentRowSpanByCell(e,t),o=n!==null&&n.start!==e?n.start:e,r=0,i=0;for(;r<this.columns.length;){if(r+=this.getColspan(o,r),r>t)return r=i,{cell:r,row:o};i=r}return{cell:r,row:o}}gotoRight(e,t,n,o){if(t>=this.columns.length)return null;let r=t+1,i=n;do{let a=this.findSpanStartingCell(n,r);if(i=a.row,r=a.cell,this.canCellBeActive(i,r)&&r>t)break;r+=this.getColspan(i,a.cell)}while(r<this.columns.length);return r<this.columns.length?{row:i,cell:r,posX:r,posY:n}:null}gotoLeft(e,t,n,o){if(t<=0)return null;let r=this.findFirstFocusableCell(e);if(r.cell===null||r.cell>=t)return null;let i,a={row:e,cell:r.cell,posX:r.cell,posY:n};for(;;){if(i=this.gotoRight(a.row,a.cell,a.posY,a.posX),!i)return null;if(i.cell>=t){let l=this.findFocusableRow(n,a.cell,"up");return l!==a.row&&(a.row=l),a}a=i}}gotoDown(e,t,n,o){let r,i=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,o),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e<=i&&!this.canCellBeActive(e,r));return e<=i?{row:e,cell:r,posX:o,posY:e}:null}gotoUp(e,t,n,o){let r;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,o,"up"),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,r));return t<=this.columns.length?{row:e,cell:r,posX:o,posY:e}:null}gotoNext(e,t,n,o){if(!L.isDefined(e)&&!L.isDefined(t)&&(e=t=n=o=0,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoRight(e,t,n,o);if(!r){let i;for(;!r&&++n<this.getDataLength()+(this._options.enableAddRow?1:0);)i=this.findFirstFocusableCell(n),i.cell!==null&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoPrev(e,t,n,o){if(!L.isDefined(e)&&!L.isDefined(t)&&(e=n=this.getDataLengthIncludingAddNew()-1,t=o=this.columns.length-1,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoLeft(e,t,n,o);if(!r){let i;for(;!r&&--n>=0;)i=this.findLastFocusableCell(n),i.cell>-1&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoRowStart(e,t,n,o){let r=this.findFirstFocusableCell(e);return r.cell===null?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}gotoRowEnd(e,t,n,o){let r=this.findLastFocusableCell(e);return r.cell===-1?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}navigateRight(){return this.navigate("right")}navigateLeft(){return this.navigate("left")}navigateDown(){return this.navigate("down")}navigateUp(){return this.navigate("up")}navigateNext(){return this.navigate("next")}navigatePrev(){return this.navigate("prev")}navigateRowStart(){return this.navigate("home")}navigateRowEnd(){return this.navigate("end")}navigateTopStart(){return this.navigateToRow(0),this.navigate("home")}navigateBottomEnd(){return this.navigateBottom(),this.navigate("end")}navigate(e){if(!this._options.enableCellNavigation||!this.activeCellNode&&e!=="prev"&&e!=="next")return!1;if(!this.getEditorLock()?.commitCurrentEdit())return!0;this.setFocus(),this.unsetActiveCell();let t={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1};this.tabbingDirection=t[e];let n={up:this.gotoUp,down:this.gotoDown,left:this.gotoLeft,right:this.gotoRight,prev:this.gotoPrev,next:this.gotoNext,home:this.gotoRowStart,end:this.gotoRowEnd}[e].call(this,this.activeRow,this.activeCell,this.activePosY,this.activePosX);return this.navigateToPos(n)}navigateToPos(e){if(e){if(this.hasFrozenRows&&this._options.frozenBottom&&e.row===this.getDataLength())return;let t=e.row===this.getDataLength();return(!this._options.frozenBottom&&e.row>=this.actualFrozenRow||this._options.frozenBottom&&e.row<this.actualFrozenRow)&&this.scrollCellIntoView(e.row,e.cell,!t&&this._options.emulatePagingWhenScrolling),this.setActiveCellInternal(this.getCellNode(e.row,e.cell)),this.activePosX=e.posX,this.activePosY=e.posY,!0}else return this.setActiveCellInternal(this.getCellNode(this.activeRow,this.activeCell)),!1}getCellNode(e,t){if(this.rowsCache[e]){this.ensureCellNodesInRowsCache(e);try{return this.rowsCache[e].cellNodesByColumnIdx.length>t?this.rowsCache[e].cellNodesByColumnIdx[t]:null}catch{return this.rowsCache[e].cellNodesByColumnIdx[t]}}return null}setActiveCell(e,t,n,o,r){this.initialized&&(e>this.getDataLength()||e<0||t>=this.columns.length||t<0||this._options.enableCellNavigation&&(this.scrollCellIntoView(e,t,!1),this.setActiveCellInternal(this.getCellNode(e,t),n,o,r)))}setActiveRow(e,t,n){this.initialized&&(e>this.getDataLength()||e<0||(t??0)>=this.columns.length||(t??0)<0||(this.activeRow=e,n||this.scrollCellIntoView(e,t||0,!1)))}canCellBeActive(e,t){if(!this._options.enableCellNavigation||e>=this.getDataLengthIncludingAddNew()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden||(this.getParentRowSpanByCell(e,t)?.start??e)!==e)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.focusable!==void 0)return!!n.focusable;let o=n?.columns;return o?.[this.columns[t].id]?.focusable!==void 0?!!o[this.columns[t].id].focusable:o?.[t]?.focusable!==void 0?!!o[t].focusable:!!this.columns[t].focusable}canCellBeSelected(e,t){if(e>=this.getDataLength()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.selectable!==void 0)return!!n.selectable;let o=n?.columns&&(n.columns[this.columns[t].id]||n.columns[t]);return o?.selectable!==void 0?!!o.selectable:!!this.columns[t].selectable}gotoCell(e,t,n,o){if(!this.initialized||!this.canCellBeActive(e,t)||!this.getEditorLock()?.commitCurrentEdit())return;this.scrollCellIntoView(e,t,!1);let r=this.getCellNode(e,t),i=this.columns[t],a=!!(this._options.editable&&i?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(r,n||e===this.getDataLength()||this._options.autoEdit,null,a,o),this.currentEditor||this.setFocus()}};/**
|
|
236
|
+
`)),H.props.disabled||(v==="selectedMenu"&&H.props.selected||$===-1)&&($=ae))});const K=T.paper??JM,X=P.paper??p,q=ct({elementType:T.root,externalSlotProps:P.root,ownerState:C,className:[D.root,a]}),Y=ct({elementType:K,externalSlotProps:X,ownerState:C,className:D.paper});return O.jsx(QM,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?KM:XM,slots:{paper:K,root:T.root},slotProps:{root:q,paper:Y},open:f,ref:n,transitionDuration:w,TransitionProps:{onEntering:z,...g},ownerState:C,...x,classes:y,children:O.jsx(eI,{onKeyDown:R,actions:F,autoFocus:r&&($===-1||l),autoFocusItem:A,variant:v,...d,className:Se(D.list,d.className),children:i})})});process.env.NODE_ENV!=="production"&&(Gy.propTypes={anchorEl:s.oneOfType([qo,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function tI(e){return Oe("MuiMenuItem",e)}const Js=De("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},oI=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},tI,a);return{...a,...d}},rI=le(dr,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:nI})(ut(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Js.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Js.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Js.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Js.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ep.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ep.inset}`]:{marginLeft:52},[`& .${ds.root}`]:{marginTop:0,marginBottom:0},[`& .${ds.inset}`]:{paddingLeft:36},[`& .${Ip.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Ip.root} svg`]:{fontSize:"1.25rem"}}}]}))),bl=k.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:y,...w}=o,b=k.useContext(Yo),g=k.useMemo(()=>({dense:a||b.dense||!1,disableGutters:d}),[b.dense,a,d]),v=k.useRef(null);nn(()=>{r&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const T={...o,dense:g.dense,divider:l,disableGutters:d},P=oI(o),x=at(v,n);let S;return o.disabled||(S=p!==void 0?p:-1),O.jsx(Yo.Provider,{value:g,children:O.jsx(rI,{ref:x,role:f,tabIndex:S,component:i,focusVisibleClassName:Se(P.focusVisible,u),className:Se(P.root,y),...w,ownerState:T,classes:P})})});process.env.NODE_ENV!=="production"&&(bl.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});function sI(e){return Oe("MuiNativeSelect",e)}const Xu=De("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),iI=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${be(n)}`,i&&"iconOpen",o&&"disabled"]};return Ie(l,sI,t)},Ky=le("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Xu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),aI=le(Ky,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Xu.multiple}`]:t.multiple}]}})({}),Xy=le("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Xu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),lI=le(Xy,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${be(n.variant)}`],n.open&&t.iconOpen]}})({}),Zy=k.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:d="standard",...u}=t,f={...t,disabled:r,variant:d,error:i},p=iI(f);return O.jsxs(k.Fragment,{children:[O.jsx(aI,{ownerState:f,className:Se(p.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:O.jsx(lI,{as:a,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Zy.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Wt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var $p;const cI=le("fieldset",{shouldForwardProp:Dn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),dI=le("legend",{shouldForwardProp:Dn})(ut(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Qy(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",d={...e,notched:i,withLabel:l};return O.jsx(cI,{"aria-hidden":!0,className:o,ownerState:d,...a,children:O.jsx(dI,{ownerState:d,children:l?O.jsx("span",{children:r}):$p||($p=O.jsx("span",{className:"notranslate",children:""}))})})}process.env.NODE_ENV!=="production"&&(Qy.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const uI=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Y1,t);return{...t,...o}},hI=le(rc,{shouldForwardProp:e=>Dn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:nc})(ut(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${po.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${po.focused} .${po.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dn()).map(([n])=>({props:{color:n},style:{[`&.${po.focused} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${po.error} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${po.disabled} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),fI=le(Qy,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ut(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),pI=le(sc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:oc})(ut(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),ks=k.forwardRef(function(t,n){var o;const r=Xe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:d,multiline:u=!1,notched:f,slots:p={},type:y="text",...w}=r,b=uI(r),g=On(),v=gr({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:g,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},P=p.root??i.Root??hI,x=p.input??i.Input??pI;return O.jsx(ic,{slots:{root:P,input:x},renderSuffix:S=>O.jsx(fI,{ownerState:T,className:b.notchedOutline,label:d!=null&&d!==""&&v.required?o||(o=O.jsxs(k.Fragment,{children:[d," ","*"]})):d,notched:typeof f<"u"?f:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:y,...w,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(ks.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});ks&&(ks.muiName="Input");function mI(e){return Oe("MuiSelect",e)}const ei=De("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Vp;const gI=le(Ky,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ei.select}`]:t.select},{[`&.${ei.select}`]:t[n.variant]},{[`&.${ei.error}`]:t.error},{[`&.${ei.multiple}`]:t.multiple}]}})({[`&.${ei.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yI=le(Xy,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${be(n.variant)}`],n.open&&t.iconOpen]}})({}),vI=le("input",{shouldForwardProp:e=>py(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function jp(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function bI(e){return e==null||typeof e=="string"&&!e.trim()}const wI=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${be(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ie(l,mI,t)},Jy=k.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:d,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:y,error:w=!1,IconComponent:b,inputRef:g,labelId:v,MenuProps:T={},multiple:P,name:x,onBlur:S,onChange:C,onClose:D,onFocus:A,onOpen:F,open:z,readOnly:R,renderValue:$,SelectDisplayProps:K={},tabIndex:X,type:q,value:Y,variant:H="standard",...ae}=t,[N,M]=Ro({controlled:Y,default:f,name:"Select"}),[V,W]=Ro({controlled:z,default:u,name:"Select"}),ne=k.useRef(null),oe=k.useRef(null),[se,j]=k.useState(null),{current:J}=k.useRef(z!=null),[ee,te]=k.useState(),ce=at(n,g),ie=k.useCallback(Me=>{oe.current=Me,Me&&j(Me)},[]),he=se?.parentNode;k.useImperativeHandle(ce,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:N}),[N]),k.useEffect(()=>{u&&V&&se&&!J&&(te(a?null:he.clientWidth),oe.current.focus())},[se,a]),k.useEffect(()=>{i&&oe.current.focus()},[i]),k.useEffect(()=>{if(!v)return;const Me=yn(oe.current).getElementById(v);if(Me){const He=()=>{getSelection().isCollapsed&&oe.current.focus()};return Me.addEventListener("click",He),()=>{Me.removeEventListener("click",He)}}},[v]);const B=(Me,He)=>{Me?F&&F(He):D&&D(He),J||(te(a?null:he.clientWidth),W(Me))},re=Me=>{Me.button===0&&(Me.preventDefault(),oe.current.focus(),B(!0,Me))},Q=Me=>{B(!1,Me)},fe=k.Children.toArray(l),me=Me=>{const He=fe.find(vt=>vt.props.value===Me.target.value);He!==void 0&&(M(He.props.value),C&&C(Me,He))},Ce=Me=>He=>{let vt;if(He.currentTarget.hasAttribute("tabindex")){if(P){vt=Array.isArray(N)?N.slice():[];const ln=N.indexOf(Me.props.value);ln===-1?vt.push(Me.props.value):vt.splice(ln,1)}else vt=Me.props.value;if(Me.props.onClick&&Me.props.onClick(He),N!==vt&&(M(vt),C)){const ln=He.nativeEvent||He,uo=new ln.constructor(ln.type,ln);Object.defineProperty(uo,"target",{writable:!0,value:{value:vt,name:x}}),C(uo,Me)}P||B(!1,He)}},ve=Me=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Me.key)&&(Me.preventDefault(),B(!0,Me))},xe=se!==null&&V,$e=Me=>{!xe&&S&&(Object.defineProperty(Me,"target",{writable:!0,value:{value:N,name:x}}),S(Me))};delete ae["aria-invalid"];let Ae,rt;const Pe=[];let ft=!1,Kt=!1;(yl({value:N})||y)&&($?Ae=$(N):ft=!0);const st=fe.map(Me=>{if(!k.isValidElement(Me))return null;process.env.NODE_ENV!=="production"&&Au.isFragment(Me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
237
|
+
`));let He;if(P){if(!Array.isArray(N))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":xo(2));He=N.some(vt=>jp(vt,Me.props.value)),He&&ft&&Pe.push(Me.props.children)}else He=jp(N,Me.props.value),He&&ft&&(rt=Me.props.children);return He&&(Kt=!0),k.cloneElement(Me,{"aria-selected":He?"true":"false",onClick:Ce(Me),onKeyUp:vt=>{vt.key===" "&&vt.preventDefault(),Me.props.onKeyUp&&Me.props.onKeyUp(vt)},role:"option",selected:He,value:void 0,"data-value":Me.props.value})});process.env.NODE_ENV!=="production"&&k.useEffect(()=>{if(!Kt&&!P&&N!==""){const Me=fe.map(He=>He.props.value);console.warn([`MUI: You have provided an out-of-range value \`${N}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Me.filter(He=>He!=null).map(He=>`\`${He}\``).join(", ")||'""'}.`].join(`
|
|
238
|
+
`))}},[Kt,fe,P,x,N]),ft&&(P?Pe.length===0?Ae=null:Ae=Pe.reduce((Me,He,vt)=>(Me.push(He),vt<Pe.length-1&&Me.push(", "),Me),[]):Ae=rt);let Yt=ee;!a&&J&&se&&(Yt=he.clientWidth);let Xt;typeof X<"u"?Xt=X:Xt=p?null:0;const on=K.id||(x?`mui-component-select-${x}`:void 0),Ue={...t,variant:H,value:N,open:xe,error:w},tt=wI(Ue),Mn={...T.PaperProps,...T.slotProps?.paper},hn=fr();return O.jsxs(k.Fragment,{children:[O.jsx(gI,{as:"div",ref:ie,tabIndex:Xt,role:"combobox","aria-controls":hn,"aria-disabled":p?"true":void 0,"aria-expanded":xe?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,on].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ve,onMouseDown:p||R?null:re,onBlur:$e,onFocus:A,...K,ownerState:Ue,className:Se(K.className,tt.select,d),id:on,children:bI(Ae)?Vp||(Vp=O.jsx("span",{className:"notranslate",children:""})):Ae}),O.jsx(vI,{"aria-invalid":w,value:Array.isArray(N)?N.join(","):N,name:x,ref:ne,"aria-hidden":!0,onChange:me,tabIndex:-1,disabled:p,className:tt.nativeInput,autoFocus:i,...ae,ownerState:Ue}),O.jsx(yI,{as:b,className:tt.icon,ownerState:Ue}),O.jsx(Gy,{id:`menu-${x||""}`,anchorEl:he,open:xe,onClose:Q,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":P?"true":void 0,disableListWrap:!0,id:hn,...T.MenuListProps},slotProps:{...T.slotProps,paper:{...Mn,style:{minWidth:Yt,...Mn!=null?Mn.style:null}}},children:st})]})});process.env.NODE_ENV!=="production"&&(Jy.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Wt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const CI=e=>{const{classes:t}=e;return t},Zu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Dn(e)&&e!=="variant",slot:"Root"},SI=le(Hi,Zu)(""),_I=le(ks,Zu)(""),xI=le(Bi,Zu)(""),da=k.forwardRef(function(t,n){const o=Xe({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:u=!1,IconComponent:f=q1,id:p,input:y,inputProps:w,label:b,labelId:g,MenuProps:v,multiple:T=!1,native:P=!1,onClose:x,onOpen:S,open:C,renderValue:D,SelectDisplayProps:A,variant:F="outlined",...z}=o,R=P?Zy:Jy,$=On(),K=gr({props:o,muiFormControl:$,states:["variant","error"]}),X=K.variant||F,q={...o,variant:X,classes:a},Y=CI(q),{root:H,...ae}=Y,N=y||{standard:O.jsx(SI,{ownerState:q}),outlined:O.jsx(_I,{label:b,ownerState:q}),filled:O.jsx(xI,{ownerState:q})}[X],M=at(n,Zi(N));return O.jsx(k.Fragment,{children:k.cloneElement(N,{inputComponent:R,inputProps:{children:i,error:K.error,IconComponent:f,variant:X,type:void 0,multiple:T,...P?{id:p}:{autoWidth:r,defaultOpen:d,displayEmpty:u,labelId:g,MenuProps:v,onClose:x,onOpen:S,open:C,renderValue:D,SelectDisplayProps:{id:p,...A}},...w,classes:w?gn(ae,w.classes):ae,...y?y.props.inputProps:{}},...(T&&P||u)&&X==="outlined"?{notched:!0}:{},ref:M,className:Se(N.props.className,l,Y.root),...!y&&{variant:X},...z})})});process.env.NODE_ENV!=="production"&&(da.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});da.muiName="Select";function RI(e){return Oe("MuiTextField",e)}De("MuiTextField",["root"]);const TI={standard:Hi,filled:Bi,outlined:ks},kI=e=>{const{classes:t}=e;return Ie({root:["root"]},RI,t)},EI=le(la,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Es=k.forwardRef(function(t,n){const o=Xe({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:d="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:y,fullWidth:w=!1,helperText:b,id:g,InputLabelProps:v,inputProps:T,InputProps:P,inputRef:x,label:S,maxRows:C,minRows:D,multiline:A=!1,name:F,onBlur:z,onChange:R,onFocus:$,placeholder:K,required:X=!1,rows:q,select:Y=!1,SelectProps:H,slots:ae={},slotProps:N={},type:M,value:V,variant:W="outlined",...ne}=o,oe={...o,autoFocus:i,color:d,disabled:f,error:p,fullWidth:w,multiline:A,required:X,select:Y,variant:W},se=kI(oe);process.env.NODE_ENV!=="production"&&Y&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const j=fr(g),J=b&&j?`${j}-helper-text`:void 0,ee=S&&j?`${j}-label`:void 0,te=TI[W],ce={slots:ae,slotProps:{input:P,inputLabel:v,htmlInput:T,formHelperText:y,select:H,...N}},ie={},he=ce.slotProps.inputLabel;W==="outlined"&&(he&&typeof he.shrink<"u"&&(ie.notched=he.shrink),ie.label=S),Y&&((!H||!H.native)&&(ie.id=void 0),ie["aria-describedby"]=void 0);const[B,re]=Rn("input",{elementType:te,externalForwardedProps:ce,additionalProps:ie,ownerState:oe}),[Q,fe]=Rn("inputLabel",{elementType:ca,externalForwardedProps:ce,ownerState:oe}),[me,Ce]=Rn("htmlInput",{elementType:"input",externalForwardedProps:ce,ownerState:oe}),[ve,xe]=Rn("formHelperText",{elementType:Uu,externalForwardedProps:ce,ownerState:oe}),[$e,Ae]=Rn("select",{elementType:da,externalForwardedProps:ce,ownerState:oe}),rt=O.jsx(B,{"aria-describedby":J,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:w,multiline:A,name:F,rows:q,maxRows:C,minRows:D,type:M,value:V,id:j,inputRef:x,onBlur:z,onChange:R,onFocus:$,placeholder:K,inputProps:Ce,slots:{input:ae.htmlInput?me:void 0},...re});return O.jsxs(EI,{className:Se(se.root,l),disabled:f,error:p,fullWidth:w,ref:n,required:X,color:d,variant:W,ownerState:oe,...ne,children:[S!=null&&S!==""&&O.jsx(Q,{htmlFor:j,id:ee,...fe,children:S}),Y?O.jsx($e,{"aria-describedby":J,id:j,labelId:ee,value:V,input:rt,...Ae,children:a}):rt,b&&O.jsx(ve,{id:J,...xe,children:b})]})});process.env.NODE_ENV!=="production"&&(Es.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});le(by)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});const rd={};let ev=class{constructor(){this._args={...rd},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args=rd;const t=this.grid.getData();t.setFilterArgs(rd),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class PI extends ev{getFilterFn(){return t=>!t?.isDeleted}}class DI{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(){}print(){return[]}reset(){}get args(){return this._args}get grid(){return this._grid}get tableId(){return this._tableId}set args(t){}set grid(t){}set tableId(t){}}function us(e){return new Date(e).getTime()}class tv{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(n,o)=>this.filterFn(n,o)&&t(n,o)}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function OI(e){return{tooltip:"Apply column filter",command:e}}class Qu{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const n=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(n,1)}notify(){for(const t of this.observers)t()}}class MI extends Qu{constructor(){super(...arguments),this.columnId="",this.group=sn.Text,this.target=null,this.x=0,this.y=0}}const wn=new MI;class II{highlightAllColumns(t,n){const o=document.getElementById(n);if(!o)return;const r=Object.keys(t.columnFilters||{});if(r.length)for(const i of r){const a=o.querySelector(`[data-id="${i}"]`);if(!a)return;t.columnFilters[i].value[1]||t.columnFilters[i].value[2]?a.classList.add("filter-active"):a.classList.remove("filter-active")}else{const i=o.querySelectorAll(".slick-header-column");for(const a of i)a.classList.remove("filter-active")}}highlightColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.add("filter-active")}resetColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.remove("filter-active")}}const ur=new II;function nv(e){return ur.highlightAllColumns(e.filter.args,e.id),function(t,n){t.preventDefault(),wn.columnId=n.column.id||"",wn.group=n.command,wn.table=e,wn.target=t.target,wn.x=t.x||0,wn.y=t.y||0,wn.notify()}}var NI=Object.defineProperty,AI=(e,t,n)=>t in e?NI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>AI(e,typeof t!="symbol"?t+"":t,n),zi=class{constructor(e,t){this.event=e,this.args=t,E(this,"_isPropagationStopped",!1),E(this,"_isImmediatePropagationStopped",!1),E(this,"_isDefaultPrevented",!1),E(this,"returnValues",[]),E(this,"returnValue"),E(this,"_eventTarget"),E(this,"nativeEvent"),E(this,"arguments_"),E(this,"altKey"),E(this,"ctrlKey"),E(this,"metaKey"),E(this,"shiftKey"),E(this,"key"),E(this,"keyCode"),E(this,"clientX"),E(this,"clientY"),E(this,"offsetX"),E(this,"offsetY"),E(this,"pageX"),E(this,"pageY"),E(this,"bubbles"),E(this,"target"),E(this,"type"),E(this,"which"),E(this,"x"),E(this,"y"),this.nativeEvent=e,this.arguments_=t,e&&["altKey","ctrlKey","metaKey","shiftKey","key","keyCode","clientX","clientY","offsetX","offsetY","pageX","pageY","bubbles","target","type","which","x","y"].forEach(n=>this[n]=e[n]),this._eventTarget=this.nativeEvent?this.nativeEvent.target:void 0}get defaultPrevented(){return this._isDefaultPrevented}stopPropagation(){this._isPropagationStopped=!0,this.nativeEvent?.stopPropagation()}isPropagationStopped(){return this._isPropagationStopped}stopImmediatePropagation(){this._isImmediatePropagationStopped=!0,this.nativeEvent&&this.nativeEvent.stopImmediatePropagation()}isImmediatePropagationStopped(){return this._isImmediatePropagationStopped}getNativeEvent(){return this.nativeEvent}preventDefault(){this.nativeEvent&&this.nativeEvent.preventDefault(),this._isDefaultPrevented=!0}isDefaultPrevented(){return this.nativeEvent?this.nativeEvent.defaultPrevented:this._isDefaultPrevented}addReturnValue(e){this.returnValues.push(e),this.returnValue===void 0&&e!==void 0&&(this.returnValue=e)}getReturnValue(){return this.returnValue}getArguments(){return this.arguments_}},Vr=class{constructor(e,t){this.eventName=e,this.pubSub=t,E(this,"_handlers",[]),E(this,"_pubSubService"),this._pubSubService=t}get subscriberCount(){return this._handlers.length}subscribe(e){this._handlers.push(e)}unsubscribe(e){for(let t=this._handlers.length-1;t>=0;t--)this._handlers[t]===e&&this._handlers.splice(t,1)}notify(e,t,n){let o=t instanceof zi?t:new zi(t,e);n=n||this;for(let r=0;r<this._handlers.length&&!(o.isPropagationStopped()||o.isImmediatePropagationStopped());r++){let i=this._handlers[r].call(n,o,e);o.addReturnValue(i)}if(typeof this._pubSubService?.publish=="function"&&this.eventName){let r=this._pubSubService.publish(this.eventName,{args:e,eventData:o});o.addReturnValue(r)}return o}setPubSubService(e){this._pubSubService=e}},ua=class{constructor(){E(this,"handlers",[])}subscribe(e,t){return this.handlers.push({event:e,handler:t}),e.subscribe(t),this}unsubscribe(e,t){let n=this.handlers.length;for(;n--;)if(this.handlers[n].event===e&&this.handlers[n].handler===t){this.handlers.splice(n,1),e.unsubscribe(t);return}return this}unsubscribeAll(){let e=this.handlers.length;for(;e--;)this.handlers[e].event.unsubscribe(this.handlers[e].handler);return this.handlers=[],this}},Ju=class{constructor(e,t,n,o){E(this,"fromRow"),E(this,"fromCell"),E(this,"toCell"),E(this,"toRow"),n===void 0&&o===void 0&&(n=e,o=t),this.fromRow=Math.min(e,n),this.fromCell=Math.min(t,o),this.toCell=Math.max(t,o),this.toRow=Math.max(e,n)}isSingleRow(){return this.fromRow===this.toRow}isSingleCell(){return this.fromRow===this.toRow&&this.fromCell===this.toCell}contains(e,t){return e>=this.fromRow&&e<=this.toRow&&t>=this.fromCell&&t<=this.toCell}toString(){return this.isSingleCell()?`(${this.fromRow}:${this.fromCell})`:`(${this.fromRow}:${this.fromCell} - ${this.toRow}:${this.toCell})`}},ov=class{constructor(){E(this,"__nonDataRow",!0)}},rv=class extends ov{constructor(){super(),E(this,"__group",!0),E(this,"level",0),E(this,"count",0),E(this,"value",null),E(this,"title",null),E(this,"collapsed",!1),E(this,"selectChecked",!1),E(this,"totals",null),E(this,"rows",[]),E(this,"groups",null),E(this,"groupingKey",null)}equals(e){return this.value===e.value&&this.count===e.count&&this.collapsed===e.collapsed&&this.title===e.title}},FI=class extends ov{constructor(){super(),E(this,"__groupTotals",!0),E(this,"group",null),E(this,"initialized",!1)}},LI=class{constructor(){E(this,"activeEditController",null)}isActive(e){return e?this.activeEditController===e:this.activeEditController!==null}activate(e){if(e!==this.activeEditController){if(this.activeEditController!==null)throw new Error("Slick.EditorLock.activate: an editController is still active, can't activate another editController");if(!e.commitCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!e.cancelCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .cancelCurrentEdit()");this.activeEditController=e}}deactivate(e){if(this.activeEditController){if(this.activeEditController!==e)throw new Error("Slick.EditorLock.deactivate: specified editController is not the currently active one");this.activeEditController=null}}commitCurrentEdit(){return this.activeEditController?this.activeEditController.commitCurrentEdit():!0}cancelCurrentEdit(){return this.activeEditController?this.activeEditController.cancelCurrentEdit():!0}},ac=class{constructor(){E(this,"_boundedEvents",[])}getBoundedEvents(){return this._boundedEvents}destroy(){this.unbindAll()}bind(e,t,n,o,r=""){e&&(e.addEventListener(t,n,o),this._boundedEvents.push({element:e,eventName:t,listener:n,groupName:r}))}unbind(e,t,n){e?.removeEventListener&&e.removeEventListener(t,n)}unbindByEventName(e,t){let n=this._boundedEvents.find(o=>o.element===e&&o.eventName===t);n&&this.unbind(n.element,n.eventName,n.listener)}unbindAll(e){if(e){let t=Array.isArray(e)?e:[e];for(let n=this._boundedEvents.length-1;n>=0;--n){let o=this._boundedEvents[n];if(t.some(r=>r===o.groupName)){let{element:r,eventName:i,listener:a}=o;this.unbind(r,i,a),this._boundedEvents.splice(n,1)}}}else for(;this._boundedEvents.length>0;){let t=this._boundedEvents.pop(),{element:n,eventName:o,listener:r}=t;this.unbind(n,o,r)}}},Hn=class jt{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||jt.toString.call(t)!=="[object Object]")return!1;let n=jt.getProto(t);if(!n)return!0;let o=jt.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&jt.fnToString.call(o)===jt.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,l=window.innerWidth||0,d=jt.windowScrollPosition(),u=d.top,f=d.left,p=jt.offset(t);if(p){let y=p.top||0,w=p.left||0;o=y-u,n=a-(y-u),r=w-f,i=l-(w-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!jt.isFunction(d)&&(d={}),u===p&&(d=this,u--);u<p;u++)if(jt.isDefined(n=t[u]))for(o in n)i=n[o],!(o==="__proto__"||d===i)&&(f&&i&&(jt.isPlainObject(i)||(a=Array.isArray(i)))?(r=d[o],a&&!Array.isArray(r)?l=[]:!a&&!jt.isPlainObject(r)?l={}:l=r,a=!1,d[o]=jt.extend(f,l,i)):i!==void 0&&(d[o]=i));return d}static createDomElement(t,n,o){let r=document.createElement(t);return n&&Object.keys(n).forEach(i=>{i==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let a=n[i];typeof a=="object"?Object.assign(r[i],a):r[i]=n[i]}),o?.appendChild&&o.appendChild(r),r}static getHtmlStringOutput(t,n="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,o=>o[n]).join("")||t.textContent||"":t instanceof HTMLElement?t[n]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(n=>n)}static innerSize(t,n){let o=0;if(t){let r=n==="height"?"clientHeight":"clientWidth",i=n==="height"?["top","bottom"]:["left","right"];o=t[r];for(let a of i){let l=parseFloat(jt.getElementProp(t,`padding-${a}`)||"")||0;o-=l}}return o}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,n){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(n):null}static getFunctionDetails(t,n=!0){let o=!1,r=i=>{let a=i.toString();if(o=a.includes("async "),a.replaceAll(" ","").includes("=>({")){let u=a.match(/(({.*}))/g)||[];return u.length>=1?`return ${u[0].trimStart()}`:a}let l=!a.includes("{")&&a.includes("=>"),d=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&l&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,l=/([^\s,]+)/g,d=i.toString().replace(a,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(l)??[]})(t),body:r(t),isAsync:o}}static insertAfterElement(t,n){t.parentNode?.insertBefore(n,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let n=t.getBoundingClientRect(),o=document.documentElement;return{top:n.top+window.pageYOffset-o.clientTop,left:n.left+window.pageXOffset-o.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,n){if(!(!t||!t.getBoundingClientRect)){if(n===void 0)return t.getBoundingClientRect().width;jt.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;jt.setStyleSize(t,"height",n)}}static setStyleSize(t,n,o){typeof o=="function"?o=o():typeof o=="string"?t.style[n]=o:t.style[n]=o+"px"}static contains(t,n){return!t||!n?!1:!jt.parents(n).every(o=>t!==o)}static isHidden(t){return t.offsetWidth===0&&t.offsetHeight===0}static parents(t,n){let o=[],r=n===":visible",i=n===":hidden";for(;(t=t.parentNode)&&t!==document&&!(!t||!t.parentNode);)i?jt.isHidden(t)&&o.push(t):r?jt.isHidden(t)||o.push(t):(!n||t.matches(n))&&o.push(t);return o}static toFloat(t){let n=parseFloat(t);return isNaN(n)?0:n}static show(t,n=""){Array.isArray(t)?t.forEach(o=>o.style.display=n):t.style.display=n}static hide(t){Array.isArray(t)?t.forEach(n=>n.style.display="none"):t.style.display="none"}static slideUp(t,n){return jt.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return jt.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?jt.hide(t):jt.show(t),o()}static applyDefaults(t,n){typeof n=="object"&&Object.keys(n).forEach(o=>{n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])})}static addSlickEventPubSubWhenDefined(t,n){if(t)for(let o in n)n[o]instanceof Vr&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};E(Hn,"getProto",Object.getPrototypeOf),E(Hn,"class2type",{}),E(Hn,"toString",Hn.class2type.toString),E(Hn,"hasOwn",Hn.class2type.hasOwnProperty),E(Hn,"fnToString",Hn.hasOwn.toString),E(Hn,"ObjectFunctionString",Hn.fnToString.call(Object)),E(Hn,"storage",{_storage:new WeakMap,put:function(e,t,n){this._storage.has(e)||this._storage.set(e,new Map),this._storage.get(e).set(t,n)},get:function(e,t){let n=this._storage.get(e);return n?n.get(t):null},remove:function(e,t){let n=this._storage.get(e).delete(t);return this._storage.get(e).size!==0&&this._storage.delete(e),n}});var co=Hn,sv=new LI,$I={Event:Vr,EventHandler:ua,GlobalEditorLock:sv,keyCode:{SPACE:8,DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{Event:VI,EventHandler:jI,GlobalEditorLock:WI,keyCode:lc,preClickClassName:BI,GridAutosizeColsMode:iv,ColAutosizeMode:HI,RowSelectionMode:zI,ValueFilterMode:YI,WidthEvalMode:UI}=$I,qI=co,av=class{constructor(e,t){this.grid=e,E(this,"pluginName","CellRangeDecorator"),E(this,"_options"),E(this,"_elem"),E(this,"_defaults",{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}}),this._options=qI.extend(!0,{},this._defaults,t)}destroy(){this.hide()}init(){}hide(){this._elem?.remove(),this._elem=null}show(e){if(!this._elem){this._elem=document.createElement("div"),this._elem.className=this._options.selectionCssClass,Object.keys(this._options.selectionCss).forEach(r=>{this._elem.style[r]=this._options.selectionCss[r]}),this._elem.style.position="absolute";let o=this.grid.getActiveCanvasNode();o&&o.appendChild(this._elem)}let t=this.grid.getCellNodeBox(e.fromRow,e.fromCell),n=this.grid.getCellNodeBox(e.toRow,e.toCell);return t&&n&&this._options?.offset&&(this._elem.style.top=`${t.top+this._options.offset.top}px`,this._elem.style.left=`${t.left+this._options.offset.left}px`,this._elem.style.height=`${n.bottom-t.top+this._options.offset.height}px`,this._elem.style.width=`${n.right-t.left+this._options.offset.width}px`),this._elem}},GI=co;function eh(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let w={dragSource:t,dragHandle:null};function b(){t&&(t.addEventListener("mousedown",P),t.addEventListener("touchstart",P))}function g(C,D,A){if(typeof C=="function")return C(D,A)}function v(){t&&(t.removeEventListener("mousedown",P),t.removeEventListener("touchstart",P))}function T(C){let D=!1;return a&&a.forEach(A=>{C[A]&&(D=!0)}),D}function P(C){if(!T(C)){l=C.target;let D=C?.touches?.[0]??C,{target:A}=D;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){w.dragHandle=l;let F=GI.windowScrollPosition();d=F.left+D.clientX,u=F.top+D.clientY,f=D.clientX-D.clientX,p=D.clientY-D.clientY,w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(n,C,w)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!T(C)){let D=C?.touches?.[0]??C;f=D.clientX-d,p=D.clientY-u;let{target:A}=D;y||(w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(o,C,w),y=!0),w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:A}),g(r,C,w)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:D}=C;w=Object.assign(w,{target:D}),g(i,C,w),y=!1}}return b(),{destroy:v}}function KI(e){let{element:t,onMouseWheel:n}=e;function o(){t.removeEventListener("wheel",i),t.removeEventListener("mousewheel",i)}function r(){t.addEventListener("wheel",i),t.addEventListener("mousewheel",i)}function i(a){let l=a||window.event,d=0,u=0,f=0;l.wheelDelta&&(d=l.wheelDelta/120),l.detail&&(d=-l.detail/3),f=d,l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS&&(f=0,u=-1*d),l.wheelDeltaY!==void 0&&(f=l.wheelDeltaY/120),l.wheelDeltaX!==void 0&&(u=-1*l.wheelDeltaX/120),typeof n=="function"&&n(a,d,u,f)}return r(),{destroy:o}}function XI(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,w){if(typeof y=="function")return y(w,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let w=y.touches?y.changedTouches[0]:y;d(o,w)!==!1&&(document.body.addEventListener("mousemove",f),document.body.addEventListener("mouseup",p),document.body.addEventListener("touchmove",f),document.body.addEventListener("touchend",p))}function f(y){y.preventDefault&&y.type!=="touchmove"&&y.preventDefault();let w=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(w,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let w=y.touches?y.changedTouches[0]:y;d(i,w),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var sd=Vr,ZI=ua,id=Ju,QI=eh,JI=av,ti=co,eN=class{constructor(e){E(this,"pluginName","CellRangeSelector"),E(this,"onBeforeCellRangeSelected",new sd("onBeforeCellRangeSelected")),E(this,"onCellRangeSelected",new sd("onCellRangeSelected")),E(this,"onCellRangeSelecting",new sd("onCellRangeSelecting")),E(this,"_grid"),E(this,"_currentlySelectedRange",null),E(this,"_canvas",null),E(this,"_decorator"),E(this,"_gridOptions"),E(this,"_activeCanvas"),E(this,"_dragging",!1),E(this,"_handler",new ZI),E(this,"_options"),E(this,"_defaults",{autoScroll:!0,minIntervalToShowNextCell:30,maxIntervalToShowNextCell:600,accelerateInterval:5,selectionCss:{border:"2px dashed blue"}}),E(this,"_rowOffset",0),E(this,"_columnOffset",0),E(this,"_isRightCanvas",!1),E(this,"_isBottomCanvas",!1),E(this,"_activeViewport"),E(this,"_autoScrollTimerId"),E(this,"_draggingMouseOffset"),E(this,"_moveDistanceForOneCell"),E(this,"_xDelayForNextCell",0),E(this,"_yDelayForNextCell",0),E(this,"_viewportHeight",0),E(this,"_viewportWidth",0),E(this,"_isRowMoveRegistered",!1),E(this,"_scrollLeft",0),E(this,"_scrollTop",0),this._options=ti.extend(!0,{},this._defaults,e)}init(e){if(QI===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new JI(e,this._options),this._grid=e,ti.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._canvas=this._grid.getCanvasNode(),this._gridOptions=this._grid.getOptions(),this._handler.subscribe(this._grid.onScroll,this.handleScroll.bind(this)).subscribe(this._grid.onDragInit,this.handleDragInit.bind(this)).subscribe(this._grid.onDragStart,this.handleDragStart.bind(this)).subscribe(this._grid.onDrag,this.handleDrag.bind(this)).subscribe(this._grid.onDragEnd,this.handleDragEnd.bind(this))}destroy(){this._handler.unsubscribeAll(),this._activeCanvas=null,this._activeViewport=null,this._canvas=null,this._decorator?.destroy()}getCellDecorator(){return this._decorator}handleScroll(e,t){this._scrollTop=t.scrollTop,this._scrollLeft=t.scrollLeft}handleDragInit(e){this._activeCanvas=this._grid.getActiveCanvasNode(e),this._activeViewport=this._grid.getActiveViewportNode(e);let t=this._grid.getDisplayedScrollbarDimensions();if(this._viewportWidth=this._activeViewport.offsetWidth-t.width,this._viewportHeight=this._activeViewport.offsetHeight-t.height,this._moveDistanceForOneCell={x:this._grid.getAbsoluteColumnMinWidth()/2,y:this._grid.getOptions().rowHeight/2},this._isRowMoveRegistered=this.hasRowMoveManager(),this._rowOffset=0,this._columnOffset=0,this._isBottomCanvas=this._activeCanvas.classList.contains("grid-canvas-bottom"),this._gridOptions.frozenRow>-1&&this._isBottomCanvas){let n=`.${this._grid.getUID()} .grid-canvas-${this._gridOptions.frozenBottom?"bottom":"top"}`,o=document.querySelector(n);o&&(this._rowOffset=o.clientHeight||0)}if(this._isRightCanvas=this._activeCanvas.classList.contains("grid-canvas-right"),this._gridOptions.frozenColumn>-1&&this._isRightCanvas){let n=document.querySelector(`.${this._grid.getUID()} .grid-canvas-left`);n&&(this._columnOffset=n.clientWidth||0)}e.stopImmediatePropagation(),e.preventDefault()}handleDragStart(e,t){let n=this._grid.getCellFromEvent(e);if(n&&this.onBeforeCellRangeSelected.notify(n).getReturnValue()!==!1&&this._grid.canCellBeSelected(n.row,n.cell)&&(this._dragging=!0,e.stopImmediatePropagation()),!this._dragging)return;this._grid.focus();let o=ti.offset(this._canvas),r=t.startX-(o?.left??0);this._gridOptions.frozenColumn>=0&&this._isRightCanvas&&(r+=this._scrollLeft);let i=t.startY-(o?.top??0);this._gridOptions.frozenRow>=0&&this._isBottomCanvas&&(i+=this._scrollTop);let a=this._grid.getCellFromPoint(r,i);return t.range={start:a,end:{}},this._currentlySelectedRange=t.range,this._decorator.show(new id(a.row,a.cell))}handleDrag(e,t){if(!this._dragging&&!this._isRowMoveRegistered)return;this._isRowMoveRegistered||e.stopImmediatePropagation();let n=e.getNativeEvent();if(this._options.autoScroll&&(this._draggingMouseOffset=this.getMouseOffsetViewport(n,t),this._draggingMouseOffset.isOutsideViewport))return this.handleDragOutsideViewport();this.stopIntervalTimer(),this.handleDragTo(n,t)}getMouseOffsetViewport(e,t){let n=e?.touches?.[0]??e,o=this._activeViewport.scrollLeft,r=this._activeViewport.scrollTop,i=o+this._viewportWidth,a=r+this._viewportHeight,l=ti.offset(this._activeViewport),d=l?.left??0,u=l?.top??0,f=d+this._viewportWidth,p=u+this._viewportHeight,y={e,dd:t,viewport:{left:o,top:r,right:i,bottom:a,offset:{left:d,top:u,right:f,bottom:p}},offset:{x:0,y:0},isOutsideViewport:!1};return n.pageX<d?y.offset.x=n.pageX-d:n.pageX>f&&(y.offset.x=n.pageX-f),n.pageY<u?y.offset.y=u-n.pageY:n.pageY>p&&(y.offset.y=p-n.pageY),y.isOutsideViewport=!!y.offset.x||!!y.offset.y,y}handleDragOutsideViewport(){if(this._xDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.x)*this._options.accelerateInterval,this._yDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.y)*this._options.accelerateInterval,!this._autoScrollTimerId){let e=0,t=0;this._autoScrollTimerId=window.setInterval(()=>{let n=!1,o=!1;this._draggingMouseOffset.offset.x?(e+=this._options.minIntervalToShowNextCell,n=e>=this._xDelayForNextCell):e=0,this._draggingMouseOffset.offset.y?(t+=this._options.minIntervalToShowNextCell,o=t>=this._yDelayForNextCell):t=0,(n||o)&&(n&&(e=0),o&&(t=0),this.handleDragToNewPosition(n,o))},this._options.minIntervalToShowNextCell)}}handleDragToNewPosition(e,t){let n=this._draggingMouseOffset.e.pageX,o=this._draggingMouseOffset.e.pageY,r=this._draggingMouseOffset.offset.x,i=this._draggingMouseOffset.offset.y,a=this._draggingMouseOffset.viewport.offset;e&&r&&(r>0?n=a.right+this._moveDistanceForOneCell.x:n=a.left-this._moveDistanceForOneCell.x),t&&i&&(i>0?o=a.top-this._moveDistanceForOneCell.y:o=a.bottom+this._moveDistanceForOneCell.y),this.handleDragTo({pageX:n,pageY:o},this._draggingMouseOffset.dd)}stopIntervalTimer(){this._autoScrollTimerId&&(window.clearInterval(this._autoScrollTimerId),this._autoScrollTimerId=void 0)}handleDragTo(e,t){let n=e?.touches?.[0]??e,o=ti.offset(this._activeCanvas),r=this._grid.getCellFromPoint(n.pageX-(o?.left??0)+this._columnOffset,n.pageY-(o?.top??0)+this._rowOffset);if(!(this._gridOptions.frozenColumn>=0&&!this._isRightCanvas&&r.cell>this._gridOptions.frozenColumn||this._isRightCanvas&&r.cell<=this._gridOptions.frozenColumn)&&!(this._gridOptions.frozenRow>=0&&!this._isBottomCanvas&&r.row>=this._gridOptions.frozenRow||this._isBottomCanvas&&r.row<this._gridOptions.frozenRow)){if(this._options.autoScroll&&this._draggingMouseOffset){let i=this._grid.getCellNodeBox(r.row,r.cell);if(!i)return;let a=this._draggingMouseOffset.viewport;(i.left<a.left||i.right>a.right||i.top<a.top||i.bottom>a.bottom)&&this._grid.scrollCellIntoView(r.row,r.cell)}if(this._grid.canCellBeSelected(r.row,r.cell)&&t?.range){t.range.end=r;let i=new id(t.range.start.row??0,t.range.start.cell??0,r.row,r.cell);this._decorator.show(i),this.onCellRangeSelecting.notify({range:i})}}}hasRowMoveManager(){return!!(this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager"))}handleDragEnd(e,t){this._decorator.hide(),this._dragging&&(this._dragging=!1,e.stopImmediatePropagation(),this.stopIntervalTimer(),this.onCellRangeSelected.notify({range:new id(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},tN=ac,nN=ua,rr=co,oN=class{constructor(e){E(this,"pluginName","CheckboxSelectColumn"),E(this,"_dataView"),E(this,"_grid"),E(this,"_isUsingDataView",!1),E(this,"_selectableOverride",null),E(this,"_headerRowNode"),E(this,"_selectAll_UID"),E(this,"_handler",new nN),E(this,"_selectedRowsLookup",{}),E(this,"_checkboxColumnCellIndex",null),E(this,"_options"),E(this,"_defaults",{columnId:"_checkbox_selector",cssClass:void 0,hideSelectAllCheckbox:!1,name:"",toolTip:"Select/Deselect All",width:30,reorderable:!1,applySelectOnAllPages:!1,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0}),E(this,"_isSelectAllChecked",!1),E(this,"_bindingEventService"),this._bindingEventService=new tN,this._options=rr.extend(!0,{},this._defaults,e),this._selectAll_UID=this.createUID(),typeof this._options.selectableOverride=="function"&&this.selectableOverride(this._options.selectableOverride)}init(e){this._grid=e,this._isUsingDataView=!Array.isArray(e.getData()),this._isUsingDataView&&(this._dataView=e.getData()),this._handler.subscribe(this._grid.onSelectedRowsChanged,this.handleSelectedRowsChanged.bind(this)).subscribe(this._grid.onClick,this.handleClick.bind(this)).subscribe(this._grid.onKeyDown,this.handleKeyDown.bind(this)).subscribe(this._grid.onAfterSetColumns,()=>this.renderSelectAllCheckbox(this._isSelectAllChecked)),this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages&&this._handler.subscribe(this._dataView.onSelectedRowIdsChanged,this.handleDataViewSelectedIdsChanged.bind(this)).subscribe(this._dataView.onPagingInfoChanged,this.handleDataViewSelectedIdsChanged.bind(this)),this._options.hideInFilterHeaderRow||this.addCheckboxToFilterHeaderRow(e),this._options.hideInColumnTitleRow||this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}getOptions(){return this._options}setOptions(e){if(this._options=rr.extend(!0,{},this._options,e),this._options.hideSelectAllCheckbox)this.hideSelectAllFromColumnHeaderTitleRow(),this.hideSelectAllFromColumnHeaderFilterRow();else if(this._options.hideInColumnTitleRow?(this.hideSelectAllFromColumnHeaderTitleRow(),this._options.name&&this._grid.updateColumnHeader(this._options.columnId||"",this._options.name,"")):(this.renderSelectAllCheckbox(this._isSelectAllChecked),this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))),this._options.hideInFilterHeaderRow)this.hideSelectAllFromColumnHeaderFilterRow();else{let t=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");if(t){t.style.display="flex";let n=t.querySelector('input[type="checkbox"]');n&&(n.checked=this._isSelectAllChecked)}}}hideSelectAllFromColumnHeaderTitleRow(){this._grid.updateColumnHeader(this._options.columnId||"",this._options.name||"","")}hideSelectAllFromColumnHeaderFilterRow(){let e=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");e&&(e.style.display="none")}handleSelectedRowsChanged(){let e=this._grid.getSelectedRows(),t={},n=0,o=0,r=0,i=0;if(typeof this._selectableOverride=="function")for(r=0;r<this._grid.getDataLength();r++){let l=this._grid.getDataItem(r);this.checkSelectableOverride(o,l,this._grid)||i++}let a=[];for(o=0;o<e.length;o++){n=e[o];let l=this._grid.getDataItem(n);this.checkSelectableOverride(o,l,this._grid)?(t[n]=!0,t[n]!==this._selectedRowsLookup[n]&&(this._grid.invalidateRow(n),delete this._selectedRowsLookup[n])):a.push(n)}if(typeof this._selectedRowsLookup=="object"&&Object.keys(this._selectedRowsLookup).forEach(l=>{l!==void 0&&this._grid.invalidateRow(+l)}),this._selectedRowsLookup=t,this._grid.render(),this._isSelectAllChecked=(e?.length??0)+i>=this._grid.getDataLength(),(!this._isUsingDataView||!this._options.applySelectOnAllPages)&&(!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow)){let l=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);l&&(l.checked=this._isSelectAllChecked)}if(a.length>0){for(o=0;o<a.length;o++){let l=e.indexOf(a[o]);e.splice(l,1)}this._grid.setSelectedRows(e,"click.cleanup")}}handleDataViewSelectedIdsChanged(){let e=this._dataView.getAllSelectedFilteredIds(),t=this._dataView.getFilteredItems(),n=0;if(typeof this._selectableOverride=="function"&&e.length>0)for(let o=0;o<this._dataView.getItemCount();o++){let r=this._dataView.getItemByIdx(o),i=this._dataView.getIdPropertyName(),a=r[i];t.findIndex(function(l){return l[i]===a})>=0&&!this.checkSelectableOverride(o,r,this._grid)&&n++}if(this._isSelectAllChecked=(e&&e.length)+n>=t.length,!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow){let o=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);o&&(o.checked=this._isSelectAllChecked)}}handleKeyDown(e,t){e.which===32&&this._grid.getColumns()[t.cell].id===this._options.columnId&&((!this._grid.getEditorLock().isActive()||this._grid.getEditorLock().commitCurrentEdit())&&this.toggleRowSelection(t.row),e.preventDefault(),e.stopImmediatePropagation())}handleClick(e,t){if(this._grid.getColumns()[t.cell].id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}this.toggleRowSelection(t.row),e.stopPropagation(),e.stopImmediatePropagation()}}toggleRowSelection(e){let t=this._grid.getDataItem(e);if(this.checkSelectableOverride(e,t,this._grid)){if(this._selectedRowsLookup[e]){let n=this._grid.getSelectedRows().filter(o=>o!==e);this._grid.setSelectedRows(n,"click.toggle")}else this._grid.setSelectedRows(this._grid.getSelectedRows().concat(e),"click.toggle");this._grid.setActiveCell(e,this.getCheckboxColumnCellIndex())}}selectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]||(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().concat(t),"SlickCheckboxSelectColumn.selectRows")}deSelectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]&&(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().filter(n=>t.indexOf(n)<0),"SlickCheckboxSelectColumn.deSelectRows")}handleHeaderClick(e,t){if(t.column.id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}let n=e.target.checked,o=n?"click.selectAll":"click.unselectAll",r=[];if(n){for(let i=0;i<this._grid.getDataLength();i++){let a=this._grid.getDataItem(i);!a.__group&&!a.__groupTotals&&this.checkSelectableOverride(i,a,this._grid)&&r.push(i)}n=!0}if(this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages){let i=[],a=this._dataView.getFilteredItems();for(let l=0;l<a.length;l++){let d=a[l];this.checkSelectableOverride(l,d,this._grid)&&i.push(d[this._dataView.getIdPropertyName()])}this._dataView.setSelectedIds(i,{isRowBeingAdded:n})}this._grid.setSelectedRows(r,o),e.stopPropagation(),e.stopImmediatePropagation()}}getCheckboxColumnCellIndex(){if(this._checkboxColumnCellIndex===null){this._checkboxColumnCellIndex=0;let e=this._grid.getColumns();for(let t=0;t<e.length;t++)e[t].id===this._options.columnId&&(this._checkboxColumnCellIndex=t)}return this._checkboxColumnCellIndex}createCheckboxElement(e,t=!1){let n=new DocumentFragment;return n.appendChild(rr.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(rr.createDomElement("label",{htmlFor:e})),n}getColumnDefinition(){return{id:this._options.columnId,reorderable:this._options.reorderable,name:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?this._options.name||"":this.createCheckboxElement(`header-selector${this._selectAll_UID}`),toolTip:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?"":this._options.toolTip,field:"sel",width:this._options.width,resizable:!1,sortable:!1,cssClass:this._options.cssClass,hideSelectAllCheckbox:this._options.hideSelectAllCheckbox,formatter:this.checkboxSelectionFormatter.bind(this),excludeFromColumnPicker:this._options.excludeFromColumnPicker??!0,excludeFromGridMenu:this._options.excludeFromGridMenu??!0,excludeFromHeaderMenu:this._options.excludeFromHeaderMenu??!0}}addCheckboxToFilterHeaderRow(e){this._handler.subscribe(e.onHeaderRowCellRendered,(t,n)=>{if(n.column.field==="sel"){rr.emptyElement(n.node);let o=rr.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(rr.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(rr.createDomElement("label",{htmlFor:`header-filter-selector${this._selectAll_UID}`})),n.node.appendChild(o),this._headerRowNode=n.node,this._bindingEventService.bind(o,"click",r=>this.handleHeaderClick(r,n))}})}createUID(){return Math.round(1e7*Math.random())}checkboxSelectionFormatter(e,t,n,o,r,i){if(r&&this.checkSelectableOverride(e,r,i)){let a=this.createUID()+e;return this.createCheckboxElement(`selector${a}`,!!this._selectedRowsLookup[e])}return null}checkSelectableOverride(e,t,n){return typeof this._selectableOverride=="function"?this._selectableOverride(e,t,n):!0}renderSelectAllCheckbox(e){this._grid.updateColumnHeader(this._options.columnId||"",this.createCheckboxElement(`header-selector${this._selectAll_UID}`,!!e),this._options.toolTip)}selectableOverride(e){this._selectableOverride=e}},rN=ac,sN=Vr,iN=jI,ad=co,aN=class{constructor(e){E(this,"pluginName","HeaderButtons"),E(this,"onCommand",new sN("onCommand")),E(this,"_grid"),E(this,"_handler",new iN),E(this,"_bindingEventService",new rN),E(this,"_defaults",{buttonCssClass:"slick-header-button"}),E(this,"_options"),this._options=ad.extend(!0,{},this._defaults,e)}init(e){this._grid=e,ad.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...ad.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},lN=ac,ld=VI,cN=ua,In=co,dN=class{constructor(e){E(this,"pluginName","HeaderMenu"),E(this,"onAfterMenuShow",new ld("onAfterMenuShow")),E(this,"onBeforeMenuShow",new ld("onBeforeMenuShow")),E(this,"onCommand",new ld("onCommand")),E(this,"_grid"),E(this,"_gridUid",""),E(this,"_handler",new cN),E(this,"_bindingEventService",new lN),E(this,"_defaults",{buttonCssClass:void 0,buttonImage:void 0,minWidth:100,autoAlign:!0,autoAlignOffset:0,subMenuOpenByEvent:"mouseover"}),E(this,"_options"),E(this,"_activeHeaderColumnElm"),E(this,"_menuElm"),E(this,"_subMenuParentId",""),this._options=In.extend(!0,{},e,this._defaults)}init(e){this._grid=e,this._gridUid=e?.getUID()||"",In.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns()),this._bindingEventService.bind(document.body,"click",this.handleBodyMouseDown.bind(this))}setOptions(e){this._options=In.extend(!0,{},this._options,e)}getGridUidSelector(){let e=this._grid.getUID()||"";return e?`.${e}`:""}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll(),this._menuElm=this._menuElm||document.body.querySelector(`.slick-header-menu${this.getGridUidSelector()}`),this._menuElm?.remove(),this._activeHeaderColumnElm=void 0}destroyAllMenus(){this.destroySubMenus(),this._bindingEventService.unbindAll("parent-menu"),document.querySelectorAll(`.slick-header-menu${this.getGridUidSelector()}`).forEach(e=>e.remove())}destroySubMenus(){this._bindingEventService.unbindAll("sub-menu"),document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(e=>e.remove())}handleBodyMouseDown(e){let t=!1;this._menuElm?.contains(e.target)&&(t=!0),t||document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(n=>{n.contains(e.target)&&(t=!0)}),(this._menuElm!==e.target&&!t&&!e.defaultPrevented||e.target.className==="close")&&this.hideMenu()}hideMenu(){this._menuElm&&(this._menuElm.remove(),this._menuElm=void 0),this._activeHeaderColumnElm?.classList.remove("slick-header-column-active"),this.destroySubMenus()}handleHeaderCellRendered(e,t){let n=t.column?.header?.menu;if(n?.items&&console.warn('[SlickGrid] Header Menu "items" property was deprecated in favor of "commandItems" to align with all other Menu plugins.'),n){if(!this.runOverrideFunctionWhenExists(this._options.menuUsabilityOverride,t))return;let o=document.createElement("div");if(o.className="slick-header-menubutton",o.ariaLabel="Header Menu",o.role="button",!this._options.buttonCssClass&&!this._options.buttonImage&&(this._options.buttonCssClass="caret"),this._options.buttonCssClass){let r=document.createElement("span");r.classList.add(...In.classNameToList(this._options.buttonCssClass)),o.appendChild(r)}this._options.buttonImage&&(o.style.backgroundImage=`url(${this._options.buttonImage})`),this._options.tooltip&&(o.title=this._options.tooltip),this._bindingEventService.bind(o,"click",r=>{this.destroyAllMenus(),this.createParentMenu(r,n,t.column)}),t.node.appendChild(o)}}handleBeforeHeaderCellDestroy(e,t){t.column.header?.menu&&t.node.querySelectorAll(".slick-header-menubutton").forEach(n=>n.remove())}addSubMenuTitleWhenExists(e,t){if(e!=="divider"&&e?.subMenuTitle){let n=document.createElement("div");n.className="slick-menu-title",n.textContent=e.subMenuTitle;let o=e.subMenuTitleCssClass;o&&n.classList.add(...In.classNameToList(o)),t.appendChild(n)}}createParentMenu(e,t,n){let o={grid:this._grid,column:n,menu:t};if(this.onBeforeMenuShow.notify(o,e,this).getReturnValue()===!1)return;this._menuElm=this.createMenu(t.commandItems||t.items,n);let r=this._grid.getContainerNode();r&&r.appendChild(this._menuElm),this.repositionMenu(e,this._menuElm),this.onAfterMenuShow.notify(o,e,this).getReturnValue()!==!1&&(e.preventDefault(),e.stopPropagation())}createMenu(e,t,n=0,o){let r=n>0,i=o?.command,a=n===1&&i?i.replaceAll(" ",""):"";a&&(this._subMenuParentId=a),r&&(a=this._subMenuParentId);let l=`slick-header-menu slick-menu-level-${n} ${this._gridUid}`,d=document.body.querySelector(`.slick-header-menu.slick-menu-level-${n}${this.getGridUidSelector()}`);if(d){if(d.dataset.subMenuParent===a)return d;this.destroySubMenus()}let u=document.createElement("div");u.className=l,n>0&&(u.classList.add("slick-submenu"),a&&(u.dataset.subMenuParent=a)),u.classList.add(this._gridUid),u.role="menu",u.ariaLabel=n>1?"SubMenu":"Header Menu",u.style.minWidth=`${this._options.minWidth}px`,u.setAttribute("aria-expanded","true");let f={grid:this._grid,column:t,menu:{items:e}};o&&n>0&&this.addSubMenuTitleWhenExists(o,u);for(let p=0;p<e.length;p++){let y=!0,w=e[p],b=this.runOverrideFunctionWhenExists(w.itemVisibilityOverride,f),g=this.runOverrideFunctionWhenExists(w.itemUsabilityOverride,f);if(!b)continue;Object.prototype.hasOwnProperty.call(w,"itemUsabilityOverride")&&(w.disabled=!g);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(w.divider||w==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),w.disabled&&v.classList.add("slick-header-menuitem-disabled"),w.hidden&&v.classList.add("slick-header-menuitem-hidden"),w.cssClass&&v.classList.add(...In.classNameToList(w.cssClass)),w.tooltip&&(v.title=w.tooltip||"");let T=document.createElement("div");T.className="slick-header-menuicon",v.appendChild(T),w.iconCssClass&&T.classList.add(...In.classNameToList(w.iconCssClass)),w.iconImage&&(T.style.backgroundImage="url("+w.iconImage+")");let P=document.createElement("span");if(P.className="slick-header-menucontent",P.textContent=w.title||"",v.appendChild(P),w.textCssClass&&P.classList.add(...In.classNameToList(w.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,w,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{w.commandItems||w.items?this.repositionSubMenu(w,t,n,x):r||this.destroySubMenus()}),w.commandItems||w.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...In.classNameToList(this._options.subItemChevronClass)):x.textContent="⮞",v.classList.add("slick-submenu-item"),v.appendChild(x)}}return u}handleMenuItemClick(e,t,n=0,o){if(e!=="divider"&&!e.disabled&&!e.divider){let r=e.command||"";if(In.isDefined(r)&&!e.commandItems&&!e.items){let i={grid:this._grid,column:t,command:r,item:e};this.onCommand.notify(i,o,this),typeof e.action=="function"&&e.action.call(this,o,i),o.defaultPrevented||this.hideMenu()}else e.commandItems||e.items?this.repositionSubMenu(e,t,n,o):this.destroySubMenus()}}repositionSubMenu(e,t,n,o){o.target.classList.contains("slick-header-menubutton")&&this.destroySubMenus();let r=this.createMenu(e.commandItems||e.items||[],t,n+1,e);document.body.appendChild(r),this.repositionMenu(o,r)}repositionMenu(e,t){let n=e.target,o=t.classList.contains("slick-submenu"),r=o?e.target.closest(".slick-header-menuitem"):n,i=In.offset(n),a=this._grid.getGridPosition(),l=t.offsetWidth,d=In.offset(this._menuElm),u=In.offset(r),f=o?u?.top??0:n.clientHeight??i?.top??0+(this._options?.menuOffsetTop??0),p=o?u?.left??0:i?.left??0;if(o&&r){let y=p+Number(l);o&&(y+=r.clientWidth);let w=document.documentElement.clientWidth;(y>=a.width||y>=w?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},uN=eh,cd=lc,hN=av,fN=eN,pN=Vr,mN=zi,gN=ua,dd=Ju,ja=co,yN=class{constructor(e){E(this,"pluginName","RowSelectionModel"),E(this,"onSelectedRangesChanged",new pN("onSelectedRangesChanged")),E(this,"_grid"),E(this,"_ranges",[]),E(this,"_eventHandler",new gN),E(this,"_inHandler",!1),E(this,"_selector"),E(this,"_isRowMoveManagerHandler"),E(this,"_options"),E(this,"_defaults",{selectActiveRow:!0,dragToSelect:!1,autoScrollWhenDrag:!0,cellRangeSelector:void 0}),this._options=ja.extend(!0,{},this._defaults,e)}init(e){if(uN===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');if(this._selector=this._options.cellRangeSelector,this._grid=e,ja.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!hN)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new fN({selectionCss:{border:"none"},autoScroll:this._options.autoScrollWhenDrag})}this._eventHandler.subscribe(this._grid.onActiveCellChanged,this.wrapHandler(this.handleActiveCellChange).bind(this)),this._eventHandler.subscribe(this._grid.onKeyDown,this.wrapHandler(this.handleKeyDown).bind(this)),this._eventHandler.subscribe(this._grid.onClick,this.wrapHandler(this.handleClick).bind(this)),this._selector&&(e.registerPlugin(this._selector),this._selector.onCellRangeSelecting.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.subscribe(this.handleBeforeCellRangeSelected.bind(this)))}destroy(){this._eventHandler.unsubscribeAll(),this._selector&&(this._selector.onCellRangeSelecting.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.unsubscribe(this.handleBeforeCellRangeSelected.bind(this)),this._grid.unregisterPlugin(this._selector),this._selector.destroy&&this._selector.destroy())}wrapHandler(e){return(...t)=>{this._inHandler||(this._inHandler=!0,e.apply(this,t),this._inHandler=!1)}}rangesToRows(e){let t=[];for(let n=0;n<e.length;n++)for(let o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}rowsToRanges(e){let t=[],n=this._grid.getColumns().length-1;return e.forEach(o=>t.push(new dd(o,0,o,n))),t}getRowsRange(e,t){let n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}getSelectedRows(){return this.rangesToRows(this._ranges)}setSelectedRows(e){this.setSelectedRanges(this.rowsToRanges(e),"SlickRowSelectionModel.setSelectedRows")}setSelectedRanges(e,t="SlickRowSelectionModel.setSelectedRanges"){if((!this._ranges||this._ranges.length===0)&&(!e||e.length===0))return;this._ranges=e;let n=new mN(new CustomEvent("click",{detail:{caller:t}}),this._ranges);this.onSelectedRangesChanged.notify(this._ranges,n)}getSelectedRanges(){return this._ranges}refreshSelections(){this.setSelectedRows(this.getSelectedRows())}handleActiveCellChange(e,t){this._options.selectActiveRow&&ja.isDefined(t.row)&&this.setSelectedRanges([new dd(t.row,0,t.row,this._grid.getColumns().length-1)])}handleKeyDown(e){let t=this._grid.getActiveCell();if(this._grid.getOptions().multiSelect&&t&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which===cd.UP||e.which===cd.DOWN)){let n=this.getSelectedRows();n.sort(function(a,l){return a-l}),n.length||(n=[t.row]);let o=n[0],r=n[n.length-1],i;if(e.which===cd.DOWN?i=t.row<r||o===r?++r:++o:i=t.row<r?--r:--o,i>=0&&i<this._grid.getDataLength()){this._grid.scrollRowIntoView(i);let a=this.rowsToRanges(this.getRowsRange(o,r));this.setSelectedRanges(a)}e.preventDefault(),e.stopPropagation()}}handleClick(e){let t=this._grid.getCellFromEvent(e);if(!t||!this._grid.canCellBeActive(t.row,t.cell)||!this._grid.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;let n=this.rangesToRows(this._ranges),o=n.indexOf(t.row);if(o===-1&&(e.ctrlKey||e.metaKey))n.push(t.row),this._grid.setActiveCell(t.row,t.cell);else if(o!==-1&&(e.ctrlKey||e.metaKey))n=n.filter(i=>i!==t.row),this._grid.setActiveCell(t.row,t.cell);else if(n.length&&e.shiftKey){let i=n.pop(),a=Math.min(t.row,i),l=Math.max(t.row,i);n=[];for(let d=a;d<=l;d++)d!==i&&n.push(d);n.push(i),this._grid.setActiveCell(t.row,t.cell)}let r=this.rowsToRanges(n);return this.setSelectedRanges(r),e.stopImmediatePropagation(),!0}handleBeforeCellRangeSelected(e,t){if(!this._isRowMoveManagerHandler){let n=this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager");this._isRowMoveManagerHandler=n?n.isHandlerColumn:ja.noop}if(this._grid.getEditorLock().isActive()||this._isRowMoveManagerHandler(t.cell))return e.stopPropagation(),!1;this._grid.setActiveCell(t.row,t.cell)}handleCellRangeSelected(e,t){if(!this._grid.getOptions().multiSelect||!this._options.selectActiveRow)return!1;this.setSelectedRanges([new dd(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},vN=lc,ud=rv,ni=co,lv=class{constructor(e){E(this,"pluginName","GroupItemMetadataProvider"),E(this,"_grid"),E(this,"_options"),E(this,"_defaults",{checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:this.defaultGroupCellFormatter.bind(this),totalsFormatter:this.defaultTotalsCellFormatter.bind(this),includeHeaderTotals:!1}),this._options=ni.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){ni.extend(!0,this._options,e)}defaultGroupCellFormatter(e,t,n,o,r){if(!this._options.enableExpandCollapse)return r.title;let i=`${r.level*15}px`,a=r.collapsed?this._options.toggleCollapsedCssClass:this._options.toggleExpandedCssClass,l=document.createDocumentFragment();this._options.checkboxSelect&&l.appendChild(ni.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(ni.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=ni.createDomElement("span",{className:this._options.groupTitleCssClass||""});return d.setAttribute("level",r.level),r.title instanceof HTMLElement?d.appendChild(r.title):this._grid.applyHtmlCode(d,r.title??""),l.appendChild(d),l}defaultTotalsCellFormatter(e,t,n,o,r,i){return o?.groupTotalsFormatter?.(r,o,i)??""}init(e){this._grid=e,this._grid.onClick.subscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.subscribe(this.handleGridKeyDown.bind(this))}destroy(){this._grid&&(this._grid.onClick.unsubscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.unsubscribe(this.handleGridKeyDown.bind(this)))}handleGridClick(e,t){let n=e.target,o=this._grid.getDataItem(t.row);if(o&&o instanceof ud&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof ud&&n.classList.contains(this._options.checkboxSelectCssClass||"")){o.selectChecked=!o.selectChecked,n.classList.remove(o.selectChecked?"unchecked":"checked"),n.classList.add(o.selectChecked?"checked":"unchecked");let r=this.dataView.mapItemsToRows(o.rows);o.selectChecked?this._options.checkboxSelectPlugin.selectRows(r):this._options.checkboxSelectPlugin.deSelectRows(r)}}handleGridKeyDown(e){if(this._options.enableExpandCollapse&&e.which===vN.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof ud&&(this.handleDataViewExpandOrCollapse(n),e.stopImmediatePropagation(),e.preventDefault())}}}handleDataViewExpandOrCollapse(e){let t=this._grid.getRenderedRange();this.dataView.setRefreshHints({ignoreDiffsBefore:t.top,ignoreDiffsAfter:t.bottom+1}),e.collapsed?this.dataView.expandGroup(e.groupingKey):this.dataView.collapseGroup(e.groupingKey)}getGroupRowMetadata(e,t,n){let o=e?.level;return{selectable:!1,focusable:this._options.groupFocusable,cssClasses:`${this._options.groupCssClass} slick-group-level-${o}`,formatter:this._options.includeHeaderTotals&&this._options.totalsFormatter||void 0,columns:{0:{colspan:this._options.includeHeaderTotals?"1":"*",formatter:this._options.groupFormatter,editor:null}}}}getTotalsRowMetadata(e,t,n){let o=e?.group?.level;return{selectable:!1,focusable:this._options.totalsFocusable,cssClasses:`${this._options.totalsCssClass} slick-group-level-${o}`,formatter:this._options.totalsFormatter,editor:null}}},$o=Vr,hd=zi,Wp=rv,bN=FI,Wn=co,wN=lv,CN=class{constructor(e,t){this.externalPubSub=t,E(this,"defaults",{globalItemMetadataProvider:null,groupItemMetadataProvider:null,inlineFilters:!1,useCSPSafeFilter:!1}),E(this,"idProperty","id"),E(this,"items",[]),E(this,"rows",[]),E(this,"idxById",new Map),E(this,"rowsById"),E(this,"filter",null),E(this,"filterCSPSafe",null),E(this,"updated",null),E(this,"suspend",!1),E(this,"isBulkSuspend",!1),E(this,"bulkDeleteIds",new Map),E(this,"sortAsc",!0),E(this,"fastSortField"),E(this,"sortComparer"),E(this,"refreshHints",{}),E(this,"prevRefreshHints",{}),E(this,"filterArgs"),E(this,"filteredItems",[]),E(this,"compiledFilter"),E(this,"compiledFilterCSPSafe"),E(this,"compiledFilterWithCaching"),E(this,"compiledFilterWithCachingCSPSafe"),E(this,"filterCache",[]),E(this,"_grid"),E(this,"groupingInfoDefaults",{getter:void 0,formatter:void 0,comparer:(n,o)=>n.value===o.value?0:n.value>o.value?1:-1,predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1}),E(this,"groupingInfos",[]),E(this,"groups",[]),E(this,"toggledGroupsByLevel",[]),E(this,"groupingDelimiter",":|:"),E(this,"selectedRowIds",[]),E(this,"preSelectedRowIdsChangeFn"),E(this,"pagesize",0),E(this,"pagenum",0),E(this,"totalRows",0),E(this,"_options"),E(this,"_container"),E(this,"onBeforePagingInfoChanged"),E(this,"onGroupExpanded"),E(this,"onGroupCollapsed"),E(this,"onPagingInfoChanged"),E(this,"onRowCountChanged"),E(this,"onRowsChanged"),E(this,"onRowsOrCountChanged"),E(this,"onSelectedRowIdsChanged"),E(this,"onSetItemsCalled"),this.onBeforePagingInfoChanged=new $o("onBeforePagingInfoChanged",t),this.onGroupExpanded=new $o("onGroupExpanded",t),this.onGroupCollapsed=new $o("onGroupCollapsed",t),this.onPagingInfoChanged=new $o("onPagingInfoChanged",t),this.onRowCountChanged=new $o("onRowCountChanged",t),this.onRowsChanged=new $o("onRowsChanged",t),this.onRowsOrCountChanged=new $o("onRowsOrCountChanged",t),this.onSelectedRowIdsChanged=new $o("onSelectedRowIdsChanged",t),this.onSetItemsCalled=new $o("onSetItemsCalled",t),this._options=Wn.extend(!0,{},this.defaults,e)}beginUpdate(e){this.suspend=!0,this.isBulkSuspend=e===!0}endUpdate(){let e=this.isBulkSuspend;this.isBulkSuspend=!1,this.suspend=!1,e&&(this.processBulkDelete(),this.ensureIdUniqueness()),this.refresh()}destroy(){this.items=[],this.idxById=null,this.rowsById=null,this.filter=null,this.filterCSPSafe=null,this.updated=null,this.sortComparer=null,this.filterCache=[],this.filteredItems=[],this.compiledFilter=null,this.compiledFilterCSPSafe=null,this.compiledFilterWithCaching=null,this.compiledFilterWithCachingCSPSafe=null,this._grid&&this._grid.onSelectedRowsChanged&&this._grid.onCellCssStylesChanged&&(this._grid.onSelectedRowsChanged.unsubscribe(),this._grid.onCellCssStylesChanged.unsubscribe()),this.onRowsOrCountChanged&&this.onRowsOrCountChanged.unsubscribe()}setRefreshHints(e){this.refreshHints=e}getFilterArgs(){return this.filterArgs}setFilterArgs(e){this.filterArgs=e}processBulkDelete(){if(!this.idxById)return;let e,t,n=0;for(let o=0,r=this.items.length;o<r;o++){if(t=this.items[o],e=t[this.idProperty],e===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.bulkDeleteIds.has(e)?this.idxById.delete(e):(this.items[n]=t,this.idxById.set(e,n),++n)}this.items.length=n,this.bulkDeleteIds=new Map}updateIdxById(e){if(this.isBulkSuspend||!this.idxById)return;e=e||0;let t;for(let n=e,o=this.items.length;n<o;n++){if(t=this.items[n][this.idProperty],t===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.idxById.set(t,n)}}ensureIdUniqueness(){if(this.isBulkSuspend||!this.idxById)return;let e;for(let t=0,n=this.items.length;t<n;t++)if(e=this.items[t][this.idProperty],e===void 0||this.idxById.get(e)!==t)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property")}getItems(){return this.items}getIdPropertyName(){return this.idProperty}setItems(e,t){t!==void 0&&(this.idProperty=t),this.items=this.filteredItems=e,this.onSetItemsCalled.notify({idProperty:this.idProperty,itemCount:this.items.length},null,this),this.idxById=new Map,this.updateIdxById(),this.ensureIdUniqueness(),this.refresh()}setPagingOptions(e){this.onBeforePagingInfoChanged.notify(this.getPagingInfo(),null,this).getReturnValue()!==!1&&(Wn.isDefined(e.pageSize)&&(this.pagesize=e.pageSize,this.pagenum=this.pagesize?Math.min(this.pagenum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1)):0),Wn.isDefined(e.pageNum)&&(this.pagenum=Math.min(e.pageNum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1))),this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),this.refresh())}getPagingInfo(){let e=this.pagesize?Math.max(1,Math.ceil(this.totalRows/this.pagesize)):1;return{pageSize:this.pagesize,pageNum:this.pagenum,totalRows:this.totalRows,totalPages:e,dataView:this}}sort(e,t){this.sortAsc=t,this.sortComparer=e,this.fastSortField=null,t===!1&&this.items.reverse(),this.items.sort(e),t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}fastSort(e,t){this.sortAsc=t,this.fastSortField=e,this.sortComparer=null;let n=Object.prototype.toString;Object.prototype.toString=typeof e=="function"?e:function(){return this[e]},t===!1&&this.items.reverse(),this.items.sort(),Object.prototype.toString=n,t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}reSort(){this.sortComparer?this.sort(this.sortComparer,this.sortAsc):this.fastSortField&&this.fastSort(this.fastSortField,this.sortAsc)}getFilteredItems(){return this.filteredItems}getFilteredItemCount(){return this.filteredItems.length}getFilter(){return this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter}setFilter(e){this.filterCSPSafe=e,this.filter=e,this._options.inlineFilters&&(this.compiledFilterCSPSafe=this.compileFilterCSPSafe,this.compiledFilterWithCachingCSPSafe=this.compileFilterWithCachingCSPSafe,this.compiledFilter=this.compileFilter(this._options.useCSPSafeFilter),this.compiledFilterWithCaching=this.compileFilterWithCaching(this._options.useCSPSafeFilter)),this.refresh()}getGrouping(){return this.groupingInfos}setGrouping(e){this._options.groupItemMetadataProvider||(this._options.groupItemMetadataProvider=new wN),this.groups=[],this.toggledGroupsByLevel=[],e=e||[],this.groupingInfos=e instanceof Array?e:[e];for(let t=0;t<this.groupingInfos.length;t++){let n=this.groupingInfos[t]=Wn.extend(!0,{},this.groupingInfoDefaults,this.groupingInfos[t]);n.getterIsAFn=typeof n.getter=="function",n.compiledAccumulators=[];let o=n.aggregators.length;for(;o--;)n.compiledAccumulators[o]=this.compileAccumulatorLoopCSPSafe(n.aggregators[o]);this.toggledGroupsByLevel[t]={}}this.refresh()}getItemByIdx(e){return this.items[e]}getIdxById(e){return this.idxById?.get(e)}ensureRowsByIdCache(){if(!this.rowsById){this.rowsById={};for(let e=0,t=this.rows.length;e<t;e++)this.rowsById[this.rows[e][this.idProperty]]=e}}getRowByItem(e){return this.ensureRowsByIdCache(),this.rowsById?.[e[this.idProperty]]}getRowById(e){return this.ensureRowsByIdCache(),this.rowsById?.[e]}getItemById(e){return this.items[this.idxById.get(e)]}mapItemsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n][this.idProperty]];Wn.isDefined(r)&&(t[t.length]=r)}return t}mapIdsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n]];Wn.isDefined(r)&&(t[t.length]=r)}return t}mapRowsToIds(e){let t=[];for(let n=0,o=e.length;n<o;n++)if(e[n]<this.rows.length){let r=this.rows[e[n]];t[t.length]=r[this.idProperty]}return t}updateSingleItem(e,t){if(this.idxById){if(!this.idxById.has(e))throw new Error("[SlickGrid DataView] Invalid id");if(e!==t[this.idProperty]){let n=t[this.idProperty];if(!Wn.isDefined(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a null id");if(this.idxById.has(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a non-unique id");this.idxById.set(n,this.idxById.get(e)),this.idxById.delete(e),this.updated?.[e]&&delete this.updated[e],e=n}this.items[this.idxById.get(e)]=t,this.updated||(this.updated={}),this.updated[e]=!0}}updateItem(e,t){this.updateSingleItem(e,t),this.refresh()}updateItems(e,t){if(e.length!==t.length)throw new Error("[SlickGrid DataView] Mismatch on the length of ids and items provided to update");for(let n=0,o=t.length;n<o;n++)this.updateSingleItem(e[n],t[n]);this.refresh()}insertItem(e,t){this.items.splice(e,0,t),this.updateIdxById(e),this.refresh()}insertItems(e,t){Array.prototype.splice.apply(this.items,[e,0].concat(t)),this.updateIdxById(e),this.refresh()}addItem(e){this.items.push(e),this.updateIdxById(this.items.length-1),this.refresh()}addItems(e){this.items=this.items.concat(e),this.updateIdxById(this.items.length-e.length),this.refresh()}deleteItem(e){if(this.idxById)if(this.isBulkSuspend)this.bulkDeleteIds.set(e,!0);else{let t=this.idxById.get(e);if(t===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(e),this.items.splice(t,1),this.updateIdxById(t),this.refresh()}}deleteItems(e){if(!(e.length===0||!this.idxById))if(this.isBulkSuspend)for(let t=0,n=e.length;t<n;t++){let o=e[t];if(this.idxById.get(o)===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.bulkDeleteIds.set(o,!0)}else{let t=[];for(let n=0,o=e.length;n<o;n++){let r=e[n],i=this.idxById.get(r);if(i===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(r),t.push(i)}t.sort();for(let n=t.length-1;n>=0;--n)this.items.splice(t[n],1);this.updateIdxById(t[0]),this.refresh()}}sortedAddItem(e){if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()");this.insertItem(this.sortedIndex(e),e)}sortedUpdateItem(e,t){if(!this.idxById)return;if(!this.idxById.has(e)||e!==t[this.idProperty])throw new Error("[SlickGrid DataView] Invalid or non-matching id "+this.idxById.get(e));if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()");let n=this.getItemById(e);this.sortComparer(n,t)!==0?(this.deleteItem(e),this.sortedAddItem(t)):this.updateItem(e,t)}sortedIndex(e){let t=0,n=this.items.length;for(;t<n;){let o=t+n>>>1;this.sortComparer(this.items[o],e)===-1?t=o+1:n=o}return t}getItemCount(){return this.items.length}getLength(){return this.rows.length}getItem(e){let t=this.rows[e];if(t?.__group&&t.totals&&!t.totals?.initialized){let n=this.groupingInfos[t.level];n.displayTotalsRow||(this.calculateTotals(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t?.__groupTotals&&!t.initialized&&this.calculateTotals(t);return t}getItemMetadata(e){let t=this.rows[e];return t===void 0?null:this._options.globalItemMetadataProvider?.getRowMetadata?this._options.globalItemMetadataProvider.getRowMetadata(t,e):t.__group&&this._options.groupItemMetadataProvider?.getGroupRowMetadata?this._options.groupItemMetadataProvider.getGroupRowMetadata(t,e):t.__groupTotals&&this._options.groupItemMetadataProvider?.getTotalsRowMetadata?this._options.groupItemMetadataProvider.getTotalsRowMetadata(t,e):null}expandCollapseAllGroups(e,t){if(Wn.isDefined(e))this.toggledGroupsByLevel[e]={},this.groupingInfos[e].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:e,groupingKey:null}):this.onGroupExpanded.notify({level:e,groupingKey:null});else for(let n=0;n<this.groupingInfos.length;n++)this.toggledGroupsByLevel[n]={},this.groupingInfos[n].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:n,groupingKey:null}):this.onGroupExpanded.notify({level:n,groupingKey:null});this.refresh()}collapseAllGroups(e){this.expandCollapseAllGroups(e,!0)}expandAllGroups(e){this.expandCollapseAllGroups(e,!1)}expandCollapseGroup(e,t,n){this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed^n,this.refresh()}collapseGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(n=t,o=t.split(this.groupingDelimiter).length-1):(n=e.join(this.groupingDelimiter),o=e.length-1),this.expandCollapseGroup(o,n,!0),this.onGroupCollapsed.notify({level:o,groupingKey:n})}expandGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(o=t.split(this.groupingDelimiter).length-1,n=t):(o=e.length-1,n=e.join(this.groupingDelimiter)),this.expandCollapseGroup(o,n,!1),this.onGroupExpanded.notify({level:o,groupingKey:n})}getGroups(){return this.groups}extractGroups(e,t){let n,o,r=[],i={},a,l=t?t.level+1:0,d=this.groupingInfos[l];for(let u=0,f=d.predefinedValues?.length??0;u<f;u++)o=d.predefinedValues?.[u],n=i[o],n||(n=new Wp,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n);for(let u=0,f=e.length;u<f;u++)a=e[u],o=d.getterIsAFn?d.getter(a):a[d.getter],n=i[o],n||(n=new Wp,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n),n.rows[n.count++]=a;if(l<this.groupingInfos.length-1)for(let u=0;u<r.length;u++)n=r[u],n.groups=this.extractGroups(n.rows,n);return r.length&&this.addTotals(r,l),r.sort(this.groupingInfos[l].comparer),r}calculateTotals(e){let t=e.group,n=this.groupingInfos[t.level??0],o=t.level===this.groupingInfos.length,r,i=n.aggregators.length;if(!o&&n.aggregateChildGroups){let a=t.groups?.length??0;for(;a--;)t.groups[a].totals.initialized||this.calculateTotals(t.groups[a].totals)}for(;i--;)r=n.aggregators[i],r.init(),!o&&n.aggregateChildGroups?n.compiledAccumulators[i].call(r,t.groups):n.compiledAccumulators[i].call(r,t.rows),r.storeResult(e);e.initialized=!0}addGroupTotals(e){let t=this.groupingInfos[e.level],n=new bN;n.group=e,e.totals=n,t.lazyTotalsCalculation||this.calculateTotals(n)}addTotals(e,t){t=t||0;let n=this.groupingInfos[t],o=n.collapsed,r=this.toggledGroupsByLevel[t],i=e.length,a;for(;i--;)a=e[i],!(a.collapsed&&!n.aggregateCollapsed)&&(a.groups&&this.addTotals(a.groups,t+1),n.aggregators?.length&&(n.aggregateEmpty||a.rows.length||a.groups?.length)&&this.addGroupTotals(a),a.collapsed=o^r[a.groupingKey],a.title=n.formatter?n.formatter(a):a.value)}flattenGroupedRows(e,t){t=t||0;let n=this.groupingInfos[t],o=[],r,i=0,a;for(let l=0,d=e.length;l<d;l++){if(a=e[l],o[i++]=a,!a.collapsed){r=a.groups?this.flattenGroupedRows(a.groups,t+1):a.rows;for(let u=0,f=r.length;u<f;u++)o[i++]=r[u]}a.totals&&n.displayTotalsRow&&(!a.collapsed||n.aggregateCollapsed)&&(o[i++]=a.totals)}return o}compileAccumulatorLoopCSPSafe(e){return e.accumulate?function(t){let n;for(let o=0;o<t.length;o++){let r=t[o];n=e.accumulate.call(e,r)}return n}:function(){}}compileFilterCSPSafe(e,t){if(typeof this.filterCSPSafe!="function")return[];let n=[],o=e.length;for(let r=0;r<o;r++)this.filterCSPSafe(e[r],t)&&n.push(e[r]);return n}compileFilter(e=!1){if(e)return null;let t=Wn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args",i),l="compiledFilter";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCaching(e=!1){if(e)return null;let t=Wn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args,_cache",i),l="compiledFilterWithCaching";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCachingCSPSafe(e,t,n){if(typeof this.filterCSPSafe!="function")return[];let o=[],r=e.length;for(let i=0;i<r;i++)(n[i]||this.filterCSPSafe(e[i],t))&&o.push(e[i]);return o}setFunctionName(e,t){try{Object.defineProperty(e,"name",{writable:!0,value:t})}catch{e.name=t}}uncompiledFilter(e,t){let n=[],o=0;for(let r=0,i=e.length;r<i;r++)this.filter?.(e[r],t)&&(n[o++]=e[r]);return n}uncompiledFilterWithCaching(e,t,n){let o=[],r=0,i;for(let a=0,l=e.length;a<l;a++)i=e[a],n[a]?o[r++]=i:this.filter?.(i,t)&&(o[r++]=i,n[a]=!0);return o}getFilteredAndPagedItems(e){if(this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter){let n,o;this._options.useCSPSafeFilter?(n=this._options.inlineFilters?this.compiledFilterCSPSafe:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCachingCSPSafe:this.uncompiledFilterWithCaching):(n=this._options.inlineFilters?this.compiledFilter:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCaching:this.uncompiledFilterWithCaching),this.refreshHints.isFilterNarrowing?this.filteredItems=n.call(this,this.filteredItems,this.filterArgs):this.refreshHints.isFilterExpanding?this.filteredItems=o.call(this,e,this.filterArgs,this.filterCache):this.refreshHints.isFilterUnchanged||(this.filteredItems=n.call(this,e,this.filterArgs))}else this.filteredItems=this.pagesize?e:e.concat();let t;return this.pagesize?(this.filteredItems.length<=this.pagenum*this.pagesize&&(this.filteredItems.length===0?this.pagenum=0:this.pagenum=Math.floor((this.filteredItems.length-1)/this.pagesize)),t=this.filteredItems.slice(this.pagesize*this.pagenum,this.pagesize*this.pagenum+this.pagesize)):t=this.filteredItems,{totalRows:this.filteredItems.length,rows:t}}getRowDiffs(e,t){let n,o,r,i=[],a=0,l=Math.max(t.length,e.length);this.refreshHints?.ignoreDiffsBefore&&(a=Math.max(0,Math.min(t.length,this.refreshHints.ignoreDiffsBefore))),this.refreshHints?.ignoreDiffsAfter&&(l=Math.min(t.length,Math.max(0,this.refreshHints.ignoreDiffsAfter)));for(let d=a,u=e.length;d<l;d++)d>=u?i[i.length]=d:(n=t[d],o=e[d],(!n||this.groupingInfos.length&&(r=n.__nonDataRow||o.__nonDataRow)&&n.__group!==o.__group||n.__group&&!n.equals(o)||r&&(n.__groupTotals||o.__groupTotals)||n[this.idProperty]!==o[this.idProperty]||this.updated?.[n[this.idProperty]])&&(i[i.length]=d));return i}recalc(e){this.rowsById=void 0,(this.refreshHints.isFilterNarrowing!==this.prevRefreshHints.isFilterNarrowing||this.refreshHints.isFilterExpanding!==this.prevRefreshHints.isFilterExpanding)&&(this.filterCache=[]);let t=this.getFilteredAndPagedItems(e);this.totalRows=t.totalRows;let n=t.rows;this.groups=[],this.groupingInfos.length&&(this.groups=this.extractGroups(n),this.groups.length&&(n=this.flattenGroupedRows(this.groups)));let o=this.getRowDiffs(this.rows,n);return this.rows=n,o}refresh(){if(this.suspend)return;let e=Wn.extend(!0,{},this.getPagingInfo()),t=this.rows.length,n=this.totalRows,o=this.recalc(this.items);this.pagesize&&this.totalRows<this.pagenum*this.pagesize&&(this.pagenum=Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1),o=this.recalc(this.items)),this.updated=null,this.prevRefreshHints=this.refreshHints,this.refreshHints={},n!==this.totalRows&&this.onBeforePagingInfoChanged.notify(e,null,this).getReturnValue()!==!1&&this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),t!==this.rows.length&&this.onRowCountChanged.notify({previous:t,current:this.rows.length,itemCount:this.items.length,dataView:this,callingOnRowsChanged:o.length>0},null,this),o.length>0&&this.onRowsChanged.notify({rows:o,itemCount:this.items.length,dataView:this,calledOnRowCountChanged:t!==this.rows.length},null,this),(t!==this.rows.length||o.length>0)&&this.onRowsOrCountChanged.notify({rowsDiff:o,previousRowCount:t,currentRowCount:this.rows.length,itemCount:this.items.length,rowCountChanged:t!==this.rows.length,rowsChanged:o.length>0,dataView:this},null,this)}syncGridSelection(e,t,n){this._grid=e;let o;this.selectedRowIds=this.mapRowsToIds(e.getSelectedRows());let r=a=>{a===!1?this.selectedRowIds=[]:this.selectedRowIds.sort().join(",")!==a.sort().join(",")&&(this.selectedRowIds=a)},i=()=>{if((this.selectedRowIds||[]).length>0&&!o){o=!0;let a=this.mapIdsToRows(this.selectedRowIds||[]);if(!t){let l={grid:this._grid,ids:this.mapRowsToIds(a),rows:a,dataView:this};this.preSelectedRowIdsChangeFn(l),this.onSelectedRowIdsChanged.notify(Object.assign(l,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new hd,this)}e.setSelectedRows(a),o=!1}};return e.onSelectedRowsChanged.subscribe((a,l)=>{if(!o){let d=this.mapRowsToIds(l.rows),u={grid:this._grid,ids:d,rows:l.rows,added:!0,dataView:this};this.preSelectedRowIdsChangeFn(u),this.onSelectedRowIdsChanged.notify(Object.assign(u,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new hd,this)}}),this.preSelectedRowIdsChangeFn=a=>{if(!o){if(o=!0,typeof a.added>"u")r(a.ids);else{let l;if(a.added)n&&e.getOptions().multiSelect?l=(this.selectedRowIds?.filter(d=>this.getRowById(d)===void 0)).concat(a.ids):l=a.ids;else if(n&&e.getOptions().multiSelect){let d=new Set(a.ids);l=this.selectedRowIds?.filter(u=>!d.has(u))}else l=[];r(l)}o=!1}},this.onRowsOrCountChanged.subscribe(i.bind(this)),this.onSelectedRowIdsChanged}getAllSelectedIds(){return this.selectedRowIds}getAllSelectedFilteredIds(){return this.getAllSelectedFilteredItems().map(e=>e[this.idProperty])}setSelectedIds(e,t){let n=t?.isRowBeingAdded,o=t?.shouldTriggerEvent,r=t?.applyRowSelectionToGrid;n!==!1&&(n=!0);let i=this.mapIdsToRows(e),a={grid:this._grid,ids:e,rows:i,added:n,dataView:this};this.preSelectedRowIdsChangeFn?.(a),o!==!1&&this.onSelectedRowIdsChanged.notify(Object.assign(a,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new hd,this),r!==!1&&this._grid&&this._grid.setSelectedRows(i)}getAllSelectedItems(){let e=[];return this.getAllSelectedIds().forEach(t=>{e.push(this.getItemById(t))}),e}getAllSelectedFilteredItems(){if(!Array.isArray(this.selectedRowIds))return[];let e=new Set(this.selectedRowIds);return this.filteredItems.filter(t=>e.has(t[this.idProperty]))||[]}syncGridCellCssStyles(e,t){let n,o,r=a=>{n={},typeof a=="object"&&Object.keys(a).forEach(l=>{if(a){let d=this.rows[l][this.idProperty];n[d]=a[l]}})};r(e.getCellCssStyles(t));let i=()=>{if(typeof n=="object"){o=!0,this.ensureRowsByIdCache();let a={};Object.keys(n).forEach(l=>{let d=this.rowsById?.[l];Wn.isDefined(d)&&(a[d]=n[l])}),e.setCellCssStyles(t,a),o=!1}};e.onCellCssStylesChanged.subscribe((a,l)=>{o||t===l.key&&(l.hash?r(l.hash):(e.onCellCssStylesChanged.unsubscribe(),this.onRowsOrCountChanged.unsubscribe(i)))}),this.onRowsOrCountChanged.subscribe(i.bind(this))}},wl=lc,fd=co,Yd=class Ud{constructor(t){this.args=t,E(this,"input"),E(this,"defaultValue"),E(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=fd.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Hp:zp),this.input.focus(),this.input.select(),this.args.compositeEditorOptions&&this.input.addEventListener("change",this.onChange.bind(this))}onChange(){let t=this.args.grid.getActiveCell();this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(this.args.compositeEditorOptions.formValues,this.serializeValue()),this.args.grid.onCompositeEditorChange.notify({row:t?.row??0,cell:t?.cell??0,item:this.args.item,column:this.args.column,formValues:this.args.compositeEditorOptions.formValues,grid:this.args.grid,editors:this.args.compositeEditorOptions.editors})}destroy(){this.input.removeEventListener("keydown",this.navOnLR?Hp:zp),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return fd.isDefined(t)||(t=Ud.DefaultDecimalPlaces),!t&&t!==0?null:t}loadValue(t){this.defaultValue=t[this.args.column.field];let n=this.getDecimalPlaces();n!==null&&(this.defaultValue||this.defaultValue===0)&&this.defaultValue?.toFixed&&(this.defaultValue=this.defaultValue.toFixed(n)),this.input.value=String(this.defaultValue??""),this.input.defaultValue=String(this.defaultValue??""),this.input.select()}serializeValue(){let t=parseFloat(this.input.value);Ud.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;let n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!(this.input.value===""&&!fd.isDefined(this.defaultValue))&&this.input.value!==this.defaultValue}validate(){if(isNaN(this.input.value))return{valid:!1,msg:"Please enter a valid number"};if(this.args.column.validator){let t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}};E(Yd,"DefaultDecimalPlaces"),E(Yd,"AllowEmptyValue",!1);var Bp=Yd;function Hp(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===wl.LEFT&&t>0||e.keyCode===wl.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function zp(e){(e.keyCode===wl.LEFT||e.keyCode===wl.RIGHT)&&e.stopImmediatePropagation()}var SN=ac,sr=HI,Fe=Vr,oi=zi,_N=WI,_n=iv,mo=lc,xN=BI,RN=Ju,rs=zI,Sr=YI,L=co,pd=UI,Yp=eh,Up=KI,qp=XI,TN=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,E(this,"slickGridVersion","5.15.5"),E(this,"cid",""),E(this,"onActiveCellChanged"),E(this,"onActiveCellPositionChanged"),E(this,"onAddNewRow"),E(this,"onAfterSetColumns"),E(this,"onAutosizeColumns"),E(this,"onBeforeAppendCell"),E(this,"onBeforeCellEditorDestroy"),E(this,"onBeforeColumnsResize"),E(this,"onBeforeDestroy"),E(this,"onBeforeEditCell"),E(this,"onBeforeFooterRowCellDestroy"),E(this,"onBeforeHeaderCellDestroy"),E(this,"onBeforeHeaderRowCellDestroy"),E(this,"onBeforeRemoveCachedRow"),E(this,"onBeforeSetColumns"),E(this,"onBeforeSort"),E(this,"onBeforeUpdateColumns"),E(this,"onCellChange"),E(this,"onCellCssStylesChanged"),E(this,"onClick"),E(this,"onColumnsReordered"),E(this,"onColumnsDrag"),E(this,"onColumnsResized"),E(this,"onColumnsResizeDblClick"),E(this,"onCompositeEditorChange"),E(this,"onContextMenu"),E(this,"onDrag"),E(this,"onDblClick"),E(this,"onDragInit"),E(this,"onDragStart"),E(this,"onDragEnd"),E(this,"onFooterClick"),E(this,"onFooterContextMenu"),E(this,"onFooterRowCellRendered"),E(this,"onHeaderCellRendered"),E(this,"onHeaderClick"),E(this,"onHeaderContextMenu"),E(this,"onHeaderMouseEnter"),E(this,"onHeaderMouseLeave"),E(this,"onHeaderRowCellRendered"),E(this,"onHeaderRowMouseEnter"),E(this,"onHeaderRowMouseLeave"),E(this,"onPreHeaderContextMenu"),E(this,"onPreHeaderClick"),E(this,"onKeyDown"),E(this,"onMouseEnter"),E(this,"onMouseLeave"),E(this,"onRendered"),E(this,"onScroll"),E(this,"onSelectedRowsChanged"),E(this,"onSetOptions"),E(this,"onActivateChangedOptions"),E(this,"onSort"),E(this,"onValidationError"),E(this,"onViewportChanged"),E(this,"scrollbarDimensions"),E(this,"maxSupportedCssHeight"),E(this,"canvas",null),E(this,"canvas_context",null),E(this,"_options"),E(this,"_defaults",{alwaysShowVerticalScroll:!1,alwaysAllowHorizontalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableHtmlRendering:!0,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,autoEditNewRow:!0,autoCommitEdit:!1,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,unorderableColumnCssClass:"unorderable",asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,auto:!1,nonce:"",editorLock:_N,showColumnHeader:!0,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,createTopHeaderPanel:!1,showPreHeaderPanel:!1,showTopHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,preHeaderPanelWidth:"auto",topHeaderPanelHeight:25,topHeaderPanelWidth:"auto",formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",rowHighlightCssClass:"highlight-animate",rowHighlightDuration:400,selectedCellCssClass:"selected",multiSelect:!0,enableCellRowSpan:!1,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,frozenBottom:!1,frozenColumn:-1,frozenRow:-1,frozenRightViewportMinWidth:100,throwWhenFrozenNotAllViewable:!1,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter:this.defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,preventDragFromKeys:["ctrlKey","metaKey"],showCellSelection:!0,viewportClass:void 0,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1,enableMouseWheelScrollHandler:!0,doPaging:!0,autosizeColsMode:_n.LegacyOff,autosizeColPaddingPx:4,rowTopOffsetRenderType:"top",scrollRenderThrottling:10,autosizeTextAvgToMWidthRatio:.75,viewportSwitchToScrollModeWidthPercent:void 0,viewportMinWidthPx:void 0,viewportMaxWidthPx:void 0,suppressCssChangesOnHiddenInit:!1,ffMaxSupportedCssHeight:6e6,maxSupportedCssHeight:1e9,maxPartialRowSpanRemap:5e3,sanitizer:void 0,logSanitizedHtml:!1,mixinDefaults:!0,shadowRoot:void 0}),E(this,"_columnDefaults",{name:"",headerCssClass:null,defaultSortAsc:!0,focusable:!0,hidden:!1,minWidth:30,maxWidth:void 0,rerenderOnResize:!1,reorderable:!0,resizable:!0,sortable:!1,selectable:!0}),E(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:sr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:rs.FirstNRows,rowSelectionCount:100,valueFilterMode:Sr.None,widthEvalMode:pd.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),E(this,"_columnResizeTimer"),E(this,"_executionBlockTimer"),E(this,"_flashCellTimer"),E(this,"_highlightRowTimer"),E(this,"th"),E(this,"h"),E(this,"ph"),E(this,"n"),E(this,"cj"),E(this,"page",0),E(this,"offset",0),E(this,"vScrollDir",1),E(this,"_bindingEventService",new SN),E(this,"initialized",!1),E(this,"_container"),E(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),E(this,"_focusSink"),E(this,"_focusSink2"),E(this,"_groupHeaders",[]),E(this,"_headerScroller",[]),E(this,"_headers",[]),E(this,"_headerRows"),E(this,"_headerRowScroller"),E(this,"_headerRowSpacerL"),E(this,"_headerRowSpacerR"),E(this,"_footerRow"),E(this,"_footerRowScroller"),E(this,"_footerRowSpacerL"),E(this,"_footerRowSpacerR"),E(this,"_preHeaderPanel"),E(this,"_preHeaderPanelScroller"),E(this,"_preHeaderPanelSpacer"),E(this,"_preHeaderPanelR"),E(this,"_preHeaderPanelScrollerR"),E(this,"_preHeaderPanelSpacerR"),E(this,"_topHeaderPanel"),E(this,"_topHeaderPanelScroller"),E(this,"_topHeaderPanelSpacer"),E(this,"_topPanelScrollers"),E(this,"_topPanels"),E(this,"_viewport"),E(this,"_canvas"),E(this,"_style"),E(this,"_boundAncestors",[]),E(this,"stylesheet"),E(this,"columnCssRulesL"),E(this,"columnCssRulesR"),E(this,"viewportH",0),E(this,"viewportW",0),E(this,"canvasWidth",0),E(this,"canvasWidthL",0),E(this,"canvasWidthR",0),E(this,"headersWidth",0),E(this,"headersWidthL",0),E(this,"headersWidthR",0),E(this,"viewportHasHScroll",!1),E(this,"viewportHasVScroll",!1),E(this,"headerColumnWidthDiff",0),E(this,"headerColumnHeightDiff",0),E(this,"cellWidthDiff",0),E(this,"cellHeightDiff",0),E(this,"absoluteColumnMinWidth"),E(this,"hasFrozenRows",!1),E(this,"frozenRowsHeight",0),E(this,"actualFrozenRow",-1),E(this,"paneTopH",0),E(this,"paneBottomH",0),E(this,"viewportTopH",0),E(this,"viewportBottomH",0),E(this,"topPanelH",0),E(this,"headerRowH",0),E(this,"footerRowH",0),E(this,"tabbingDirection",1),E(this,"_activeCanvasNode"),E(this,"_activeViewportNode"),E(this,"activePosX"),E(this,"activePosY"),E(this,"activeRow"),E(this,"activeCell"),E(this,"activeCellNode",null),E(this,"currentEditor",null),E(this,"serializedEditorValue"),E(this,"editController"),E(this,"_prevDataLength",0),E(this,"_prevInvalidatedRowsCount",0),E(this,"_rowSpanIsCached",!1),E(this,"_colsWithRowSpanCache",{}),E(this,"rowsCache",{}),E(this,"renderedRows",0),E(this,"numVisibleRows",0),E(this,"prevScrollTop",0),E(this,"scrollHeight",0),E(this,"scrollTop",0),E(this,"lastRenderedScrollTop",0),E(this,"lastRenderedScrollLeft",0),E(this,"prevScrollLeft",0),E(this,"scrollLeft",0),E(this,"selectionModel"),E(this,"selectedRows",[]),E(this,"plugins",[]),E(this,"cellCssClasses",{}),E(this,"columnsById",{}),E(this,"sortColumns",[]),E(this,"columnPosLeft",[]),E(this,"columnPosRight",[]),E(this,"pagingActive",!1),E(this,"pagingIsLastPage",!1),E(this,"scrollThrottle"),E(this,"h_editorLoader"),E(this,"h_postrender"),E(this,"h_postrenderCleanup"),E(this,"postProcessedRows",{}),E(this,"postProcessToRow",null),E(this,"postProcessFromRow",null),E(this,"postProcessedCleanupQueue",[]),E(this,"postProcessgroupId",0),E(this,"counter_rows_rendered",0),E(this,"counter_rows_removed",0),E(this,"_paneHeaderL"),E(this,"_paneHeaderR"),E(this,"_paneTopL"),E(this,"_paneTopR"),E(this,"_paneBottomL"),E(this,"_paneBottomR"),E(this,"_headerScrollerL"),E(this,"_headerScrollerR"),E(this,"_headerL"),E(this,"_headerR"),E(this,"_groupHeadersL"),E(this,"_groupHeadersR"),E(this,"_headerRowScrollerL"),E(this,"_headerRowScrollerR"),E(this,"_footerRowScrollerL"),E(this,"_footerRowScrollerR"),E(this,"_headerRowL"),E(this,"_headerRowR"),E(this,"_footerRowL"),E(this,"_footerRowR"),E(this,"_topPanelScrollerL"),E(this,"_topPanelScrollerR"),E(this,"_topPanelL"),E(this,"_topPanelR"),E(this,"_viewportTopL"),E(this,"_viewportTopR"),E(this,"_viewportBottomL"),E(this,"_viewportBottomR"),E(this,"_canvasTopL"),E(this,"_canvasTopR"),E(this,"_canvasBottomL"),E(this,"_canvasBottomR"),E(this,"_viewportScrollContainerX"),E(this,"_viewportScrollContainerY"),E(this,"_headerScrollContainer"),E(this,"_headerRowScrollContainer"),E(this,"_footerRowScrollContainer"),E(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),E(this,"_hiddenParents",[]),E(this,"oldProps",[]),E(this,"enforceFrozenRowHeightRecalc",!1),E(this,"columnResizeDragging",!1),E(this,"slickDraggableInstance",null),E(this,"slickMouseWheelInstances",[]),E(this,"slickResizableInstances",[]),E(this,"sortableSideLeftInstance"),E(this,"sortableSideRightInstance"),E(this,"logMessageCount",0),E(this,"logMessageMaxCount",30),E(this,"_pubSubService"),this._container=typeof this.container=="string"?document.querySelector(this.container):this.container,!this._container)throw new Error(`SlickGrid requires a valid container, ${this.container} does not exist in the DOM.`);this._pubSubService=r,this.onActiveCellChanged=new Fe("onActiveCellChanged",r),this.onActiveCellPositionChanged=new Fe("onActiveCellPositionChanged",r),this.onAddNewRow=new Fe("onAddNewRow",r),this.onAfterSetColumns=new Fe("onAfterSetColumns",r),this.onAutosizeColumns=new Fe("onAutosizeColumns",r),this.onBeforeAppendCell=new Fe("onBeforeAppendCell",r),this.onBeforeCellEditorDestroy=new Fe("onBeforeCellEditorDestroy",r),this.onBeforeColumnsResize=new Fe("onBeforeColumnsResize",r),this.onBeforeDestroy=new Fe("onBeforeDestroy",r),this.onBeforeEditCell=new Fe("onBeforeEditCell",r),this.onBeforeFooterRowCellDestroy=new Fe("onBeforeFooterRowCellDestroy",r),this.onBeforeHeaderCellDestroy=new Fe("onBeforeHeaderCellDestroy",r),this.onBeforeHeaderRowCellDestroy=new Fe("onBeforeHeaderRowCellDestroy",r),this.onBeforeRemoveCachedRow=new Fe("onRowRemovedFromCache",r),this.onBeforeSetColumns=new Fe("onBeforeSetColumns",r),this.onBeforeSort=new Fe("onBeforeSort",r),this.onBeforeUpdateColumns=new Fe("onBeforeUpdateColumns",r),this.onCellChange=new Fe("onCellChange",r),this.onCellCssStylesChanged=new Fe("onCellCssStylesChanged",r),this.onClick=new Fe("onClick",r),this.onColumnsReordered=new Fe("onColumnsReordered",r),this.onColumnsDrag=new Fe("onColumnsDrag",r),this.onColumnsResized=new Fe("onColumnsResized",r),this.onColumnsResizeDblClick=new Fe("onColumnsResizeDblClick",r),this.onCompositeEditorChange=new Fe("onCompositeEditorChange",r),this.onContextMenu=new Fe("onContextMenu",r),this.onDrag=new Fe("onDrag",r),this.onDblClick=new Fe("onDblClick",r),this.onDragInit=new Fe("onDragInit",r),this.onDragStart=new Fe("onDragStart",r),this.onDragEnd=new Fe("onDragEnd",r),this.onFooterClick=new Fe("onFooterClick",r),this.onFooterContextMenu=new Fe("onFooterContextMenu",r),this.onFooterRowCellRendered=new Fe("onFooterRowCellRendered",r),this.onHeaderCellRendered=new Fe("onHeaderCellRendered",r),this.onHeaderClick=new Fe("onHeaderClick",r),this.onHeaderContextMenu=new Fe("onHeaderContextMenu",r),this.onHeaderMouseEnter=new Fe("onHeaderMouseEnter",r),this.onHeaderMouseLeave=new Fe("onHeaderMouseLeave",r),this.onHeaderRowCellRendered=new Fe("onHeaderRowCellRendered",r),this.onHeaderRowMouseEnter=new Fe("onHeaderRowMouseEnter",r),this.onHeaderRowMouseLeave=new Fe("onHeaderRowMouseLeave",r),this.onPreHeaderClick=new Fe("onPreHeaderClick",r),this.onPreHeaderContextMenu=new Fe("onPreHeaderContextMenu",r),this.onKeyDown=new Fe("onKeyDown",r),this.onMouseEnter=new Fe("onMouseEnter",r),this.onMouseLeave=new Fe("onMouseLeave",r),this.onRendered=new Fe("onRendered",r),this.onScroll=new Fe("onScroll",r),this.onSelectedRowsChanged=new Fe("onSelectedRowsChanged",r),this.onSetOptions=new Fe("onSetOptions",r),this.onActivateChangedOptions=new Fe("onActivateChangedOptions",r),this.onSort=new Fe("onSort",r),this.onValidationError=new Fe("onValidationError",r),this.onViewportChanged=new Fe("onViewportChanged",r),this.initialize(o)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),L.applyDefaults(this._options,this._defaults)):this._options=L.extend(!0,{},this._defaults,e),this.scrollThrottle=this.actionThrottle(this.render.bind(this),this._options.scrollRenderThrottling),this.maxSupportedCssHeight=this.maxSupportedCssHeight||this.getMaxSupportedCssHeight(),this.validateAndEnforceOptions(),this._columnDefaults.width=this._options.defaultColumnWidth,this._options.suppressCssChangesOnHiddenInit||this.cacheCssForHiddenInit(),this.updateColumnProps(),this._options.enableColumnReorder&&(!Sortable||!Sortable.create))throw new Error("SlickGrid requires Sortable.js module to be loaded");this.editController={commitCurrentEdit:this.commitCurrentEdit.bind(this),cancelCurrentEdit:this.cancelCurrentEdit.bind(this)},L.emptyElement(this._container),this._container.style.outline=String(0),this._container.classList.add(this.uid),this._container.classList.add("ui-widget"),this._container.setAttribute("role","grid");let t=window.getComputedStyle(this._container);/relative|absolute|fixed/.test(t.position)||(this._container.style.position="relative"),this._focusSink=L.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=L.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=L.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||L.hide(this._topHeaderPanelScroller)),this._paneHeaderL=L.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=L.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=L.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=L.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=L.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=L.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=L.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderL),this._preHeaderPanelScroller.appendChild(document.createElement("div")),this._preHeaderPanel=L.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=L.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=L.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(L.hide(this._preHeaderPanelScroller),L.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=L.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=L.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-right"},this._paneHeaderR),this._headerScroller.push(this._headerScrollerL),this._headerScroller.push(this._headerScrollerR),this._headerL=L.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=L.createDomElement("div",{className:"slick-header-columns slick-header-columns-right",role:"row",style:{left:"-1000px"}},this._headerScrollerR),this._headers=[this._headerL,this._headerR],this._headerRowScrollerL=L.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=L.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=L.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=L.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=L.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=L.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=L.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=L.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{L.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{L.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{L.hide(o)}),this._viewportTopL=L.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=L.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=L.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=L.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-right",tabIndex:0},this._paneBottomR),this._viewport=[this._viewportTopL,this._viewportTopR,this._viewportBottomL,this._viewportBottomR],this._options.viewportClass&&this._viewport.forEach(o=>{o.classList.add(...L.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=L.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=L.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=L.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=L.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-right",tabIndex:0},this._viewportBottomR),this._canvas=[this._canvasTopL,this._canvasTopR,this._canvasBottomL,this._canvasBottomR],this.scrollbarDimensions=this.scrollbarDimensions||this.measureScrollbar();let n=this.getCanvasWidth()+this.scrollbarDimensions.width;this._activeCanvasNode=this._canvasTopL,this._topHeaderPanelSpacer&&L.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&L.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{L.width(o,this.getHeadersWidth())}),L.width(this._headerRowSpacerL,n),L.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=L.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=L.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),L.width(this._footerRowSpacerL,n),this._footerRowSpacerR=L.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),L.width(this._footerRowSpacerR,n),this._footerRowL=L.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=L.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-right"},this._footerRowScrollerR),this._footerRow=[this._footerRowL,this._footerRowR],this._options.showFooterRow||this._footerRowScroller.forEach(o=>{L.hide(o)})),this._focusSink2=this._focusSink.cloneNode(!0),this._container.appendChild(this._focusSink2),this._options.explicitInitialization||this.finishInitialization()}finishInitialization(){this.initialized||(this.initialized=!0,this.getViewportWidth(),this.getViewportHeight(),this.measureCellPaddingAndBorder(),this.disableSelection(this._headers),this._options.enableTextSelectionOnCells||this._viewport.forEach(e=>{this._bindingEventService.bind(e,"selectstart",t=>{t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement})}),this.setFrozenOptions(),this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setScroller(),this.setOverflow(),this.updateColumnCaches(),this.createColumnHeaders(),this.createColumnFooter(),this.setupColumnSort(),this.createCssRules(),this.resizeCanvas(),this.bindAncestorScrollEvents(),this._bindingEventService.bind(this._container,"resize",this.resizeCanvas.bind(this)),this._viewport.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleScroll.bind(this))}),this._options.enableMouseWheelScrollHandler&&this._viewport.forEach(e=>{this.slickMouseWheelInstances.push(Up({element:e,onMouseWheel:this.handleMouseWheel.bind(this)}))}),this._headerScroller.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleHeaderContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleHeaderClick.bind(this))}),this._headerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleHeaderRowScroll.bind(this))}),this._options.createFooterRow&&(this._footerRow.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleFooterContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleFooterClick.bind(this))}),this._footerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleFooterRowScroll.bind(this))})),this._options.createTopHeaderPanel&&this._bindingEventService.bind(this._topHeaderPanelScroller,"scroll",this.handleTopHeaderPanelScroll.bind(this)),this._options.createPreHeaderPanel&&(this._bindingEventService.bind(this._preHeaderPanelScroller,"scroll",this.handlePreHeaderPanelScroll.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"click",this.handlePreHeaderClick.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"click",this.handlePreHeaderClick.bind(this))),this._bindingEventService.bind(this._focusSink,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(this._focusSink2,"keydown",this.handleKeyDown.bind(this)),this._canvas.forEach(e=>{this._bindingEventService.bind(e,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(e,"click",this.handleClick.bind(this)),this._bindingEventService.bind(e,"dblclick",this.handleDblClick.bind(this)),this._bindingEventService.bind(e,"contextmenu",this.handleContextMenu.bind(this)),this._bindingEventService.bind(e,"mouseover",this.handleCellMouseOver.bind(this)),this._bindingEventService.bind(e,"mouseout",this.handleCellMouseOut.bind(this))}),Yp&&(this.slickDraggableInstance=Yp({containerElement:this._container,allowDragFrom:"div.slick-cell",allowDragFromClosest:"div.slick-cell.dnd, div.slick-cell.cell-reorder",preventDragFromKeys:this._options.preventDragFromKeys,onDragInit:this.handleDragInit.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})),this._options.suppressCssChangesOnHiddenInit||this.restoreCssFromHiddenInit())}cacheCssForHiddenInit(){this._hiddenParents=L.parents(this._container,":hidden"),this.oldProps=[],this._hiddenParents.forEach(e=>{let t={};Object.keys(this.cssShow).forEach(n=>{this.cssShow&&(t[n]=e.style[n],e.style[n]=this.cssShow[n])}),this.oldProps.push(t)})}restoreCssFromHiddenInit(){let e=0;this._hiddenParents&&(this._hiddenParents.forEach(t=>{let n=this.oldProps[e++];Object.keys(this.cssShow).forEach(o=>{this.cssShow&&(t.style[o]=n[o])})}),this._hiddenParents=[])}registerPlugin(e){this.plugins.unshift(e),e.init(this)}unregisterPlugin(e){for(let t=this.plugins.length;t>=0;t--)if(this.plugins[t]===e){this.plugins[t]?.destroy(),this.plugins.splice(t,1);break}}destroy(e){this._bindingEventService.unbindAll(),this.slickDraggableInstance=this.destroyAllInstances(this.slickDraggableInstance),this.slickMouseWheelInstances=this.destroyAllInstances(this.slickMouseWheelInstances),this.slickResizableInstances=this.destroyAllInstances(this.slickResizableInstances),this.getEditorLock()?.cancelCurrentEdit(),this.trigger(this.onBeforeDestroy,{});let t=this.plugins.length;for(;t--;)this.unregisterPlugin(this.plugins[t]);this._options.enableColumnReorder&&typeof this.sortableSideLeftInstance?.destroy=="function"&&(this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy()),this.unbindAncestorScrollEvents(),this._bindingEventService.unbindByEventName(this._container,"resize"),this.removeCssRules(),this._canvas.forEach(r=>{this._bindingEventService.unbindByEventName(r,"keydown"),this._bindingEventService.unbindByEventName(r,"click"),this._bindingEventService.unbindByEventName(r,"dblclick"),this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"mouseover"),this._bindingEventService.unbindByEventName(r,"mouseout")}),this._viewport.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._headerScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._headerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._footerRow&&this._footerRow.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._footerRowScroller&&this._footerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._preHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._preHeaderPanelScroller,"scroll"),this._topHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._topHeaderPanelScroller,"scroll"),this._bindingEventService.unbindByEventName(this._focusSink,"keydown"),this._bindingEventService.unbindByEventName(this._focusSink2,"keydown");let n=this._container.querySelectorAll(".slick-resizable-handle");[].forEach.call(n,r=>{this._bindingEventService.unbindByEventName(r,"dblclick")});let o=this._container.querySelectorAll(".slick-header-column");[].forEach.call(o,r=>{this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave"),this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave")}),L.emptyElement(this._container),this._container.classList.remove(this.uid),this.clearAllTimers(),e&&this.destroyAllElements()}destroyAllInstances(e){if(e){let t=Array.isArray(e)?e:[e],n;for(;L.isDefined(n=t.pop());)n&&typeof n.destroy=="function"&&n.destroy()}return e=Array.isArray(e)?[]:null,e}destroyAllElements(){this._activeCanvasNode=null,this._activeViewportNode=null,this._boundAncestors=null,this._canvas=null,this._canvasTopL=null,this._canvasTopR=null,this._canvasBottomL=null,this._canvasBottomR=null,this._container=null,this._focusSink=null,this._focusSink2=null,this._groupHeaders=null,this._groupHeadersL=null,this._groupHeadersR=null,this._headerL=null,this._headerR=null,this._headers=null,this._headerRows=null,this._headerRowL=null,this._headerRowR=null,this._headerRowSpacerL=null,this._headerRowSpacerR=null,this._headerRowScrollContainer=null,this._headerRowScroller=null,this._headerRowScrollerL=null,this._headerRowScrollerR=null,this._headerScrollContainer=null,this._headerScroller=null,this._headerScrollerL=null,this._headerScrollerR=null,this._hiddenParents=null,this._footerRow=null,this._footerRowL=null,this._footerRowR=null,this._footerRowSpacerL=null,this._footerRowSpacerR=null,this._footerRowScroller=null,this._footerRowScrollerL=null,this._footerRowScrollerR=null,this._footerRowScrollContainer=null,this._preHeaderPanel=null,this._preHeaderPanelR=null,this._preHeaderPanelScroller=null,this._preHeaderPanelScrollerR=null,this._preHeaderPanelSpacer=null,this._preHeaderPanelSpacerR=null,this._topPanels=null,this._topPanelScrollers=null,this._style=null,this._topPanelScrollerL=null,this._topPanelScrollerR=null,this._topPanelL=null,this._topPanelR=null,this._paneHeaderL=null,this._paneHeaderR=null,this._paneTopL=null,this._paneTopR=null,this._paneBottomL=null,this._paneBottomR=null,this._viewport=null,this._viewportTopL=null,this._viewportTopR=null,this._viewportBottomL=null,this._viewportBottomR=null,this._viewportScrollContainerX=null,this._viewportScrollContainerY=null}getOptions(){return this._options}setOptions(e,t,n,o){this.prepareForOptionsChange(),this._options.enableAddRow!==e.enableAddRow&&this.invalidateRow(this.getDataLength()),e.frozenColumn!==void 0&&e.frozenColumn>=0&&(this.getViewports().forEach(i=>i.scrollLeft=0),this.handleScroll());let r=L.extend(!0,{},this._options);this._options=L.extend(this._options,e),this.trigger(this.onSetOptions,{optionsBefore:r,optionsAfter:this._options}),this.internal_setOptions(t,n,o)}activateChangedOptions(e,t,n){this.prepareForOptionsChange(),this.invalidateRow(this.getDataLength()),this.trigger(this.onActivateChangedOptions,{options:this._options}),this.internal_setOptions(e,t,n)}prepareForOptionsChange(){this.getEditorLock().commitCurrentEdit()&&this.makeActiveCellNormal()}internal_setOptions(e,t,n){this._options.showColumnHeader!==void 0&&this.setColumnHeaderVisibility(this._options.showColumnHeader),this.validateAndEnforceOptions(),this.setFrozenOptions(),this._options.frozenBottom!==void 0&&(this.enforceFrozenRowHeightRecalc=!0),this._viewport.forEach(o=>{o.style.overflowY=this._options.autoHeight?"hidden":"auto"}),e||this.render(),this.setScroller(),n||this.setOverflow(),t||this.setColumns(this.columns),this._options.enableMouseWheelScrollHandler&&this._viewport&&(!this.slickMouseWheelInstances||this.slickMouseWheelInstances.length===0)?this._viewport.forEach(o=>{this.slickMouseWheelInstances.push(Up({element:o,onMouseWheel:this.handleMouseWheel.bind(this)}))}):this._options.enableMouseWheelScrollHandler===!1&&this.destroyAllInstances(this.slickMouseWheelInstances)}validateAndEnforceOptions(){this._options.autoHeight&&(this._options.leaveSpaceForNewRows=!1),this._options.forceFitColumns&&(this._options.autosizeColsMode=_n.LegacyForceFit)}setSelectionModel(e){this.selectionModel&&(this.selectionModel.onSelectedRangesChanged.unsubscribe(this.handleSelectedRangesChanged.bind(this)),this.selectionModel.destroy&&this.selectionModel.destroy()),this.selectionModel=e,this.selectionModel&&(this.selectionModel.init(this),this.selectionModel.onSelectedRangesChanged.subscribe(this.handleSelectedRangesChanged.bind(this)))}getSelectionModel(){return this.selectionModel}setPaneFrozenClasses(){let e=this.hasFrozenColumns()?"add":"remove";for(let t of[this._paneHeaderL,this._paneTopL,this._paneBottomL])t.classList[e]("frozen")}hasFrozenColumns(){return this._options.frozenColumn>-1}updateColumnHeader(e,t,n){if(this.initialized){let o=this.getColumnIndex(e);if(!L.isDefined(o))return;let r=this.columns[o],i=this.getColumnByIndex(o);i&&(t!==void 0&&(this.columns[o].name=t),n!==void 0&&(this.columns[o].toolTip=n),this.trigger(this.onBeforeHeaderCellDestroy,{node:i,column:r,grid:this}),i.setAttribute("title",n||""),t!==void 0&&this.applyHtmlCode(i.children[0],t),this.trigger(this.onHeaderCellRendered,{node:i,column:r,grid:this}))}}getHeader(e){if(!e)return this.hasFrozenColumns()?this._headers:this._headerL;let t=this.getColumnIndex(e.id);return this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL}getHeaderColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n=this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?t<=this._options.frozenColumn?t:t-this._options.frozenColumn-1:t;return n.children[o]}getHeaderRow(){return this.hasFrozenColumns()?this._headerRows:this._headerRows[0]}getFooterRow(){return this.hasFrozenColumns()?this._footerRow:this._footerRow[0]}getHeaderRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._headerRowL:(n=this._headerRowR,t-=this._options.frozenColumn+1):n=this._headerRowL,n.children[t]}getFooterRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._footerRowL:(n=this._footerRowR,t-=this._options.frozenColumn+1):n=this._footerRowL,n.children[t]}createColumnFooter(){if(this._options.createFooterRow){this._footerRow.forEach(e=>{e.querySelectorAll(".slick-footerrow-column").forEach(t=>{let n=L.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),L.emptyElement(this._footerRowL),L.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},this.hasFrozenColumns()&&e>this._options.frozenColumn?this._footerRowR:this._footerRowL),o=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;o&&n.classList.add(o),L.storage.put(n,"column",t),this.trigger(this.onFooterRowCellRendered,{node:n,column:t,grid:this})}}}setupColumnSort(){this._headers.forEach(e=>{this._bindingEventService.bind(e,"click",t=>{if(this.columnResizeDragging||t.target.classList.contains("slick-resizable-handle"))return;let n=t.target.closest(".slick-header-column");if(!n)return;let o=L.storage.get(n,"column");if(o.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let r=this.sortColumns.slice(),i=null,a=0;for(;a<this.sortColumns.length;a++)if(this.sortColumns[a].columnId===o.id){i=this.sortColumns[a],i.sortAsc=!i.sortAsc;break}let l=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),l&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!l||!this._options.multiColumnSort)&&this.sortColumns.push(i)):t.metaKey&&this._options.multiColumnSort?i&&this.sortColumns.splice(a,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),i?this.sortColumns.length===0&&this.sortColumns.push(i):(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o},this.sortColumns.push(i)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(u=>{let f=this.columns[this.getColumnIndex(u.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:u.sortAsc}}).filter(u=>u)}:d={multiColumnSort:!1,previousSortColumns:r,columnId:this.sortColumns.length>0?o.id:null,sortCol:this.sortColumns.length>0?o:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=L.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),L.emptyElement(this._headerL),L.emptyElement(this._headerR),this.getHeadersWidth(),L.width(this._headerL,this.headersWidthL),L.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=L.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),L.emptyElement(this._headerRowL),L.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=L.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),L.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=L.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),L.emptyElement(this._footerRowR)));for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(t.hidden)continue;let n=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerRowL:this._headerRowR:this._headerRowL,r=L.createDomElement("div",{id:`${this.uid+t.id}`,dataset:{id:String(t.id)},role:"columnheader",className:"ui-state-default slick-state-default slick-header-column"},n);t.toolTip&&(r.title=t.toolTip),t.reorderable||r.classList.add(this._options.unorderableColumnCssClass);let i=L.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),L.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...L.classNameToList(a)),a=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null,a&&r.classList.add(a),this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseEnter.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseLeave.bind(this)),L.storage.put(r,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(l=>{t.headerCellAttrs.hasOwnProperty(l)&&r.setAttribute(l,t.headerCellAttrs[l])}),t.sortable&&(r.classList.add("slick-header-sortable"),L.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&L.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let l=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&l.classList.add(d),this._bindingEventService.bind(l,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(l,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),L.storage.put(l,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:l,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let l=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=L.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},l);L.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,n=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,o=!1,r={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:i=>!i.related.classList.contains(this._options.unorderableColumnCssClass),onStart:i=>{i.item.classList.add("slick-header-column-active"),o=!this.hasFrozenColumns()||L.offset(i.item).left>L.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<L.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(n,100)):(window.clearInterval(e),e=null)},onEnd:i=>{if(i.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let a=this.sortableSideLeftInstance?.toArray()??[];a=a.concat(this.sortableSideRightInstance?.toArray()??[]);let l=[];for(let d=0;d<a.length;d++)l.push(this.columns[this.getColumnIndex(a[d])]);this.setColumns(l),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),i.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,r),this.sortableSideRightInstance=Sortable.create(this._headerR,r)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof qp>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let w=L.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(w,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(qp({resizeableElement:y,resizeableHandleElement:w,onResizeStart:(b,g)=>{let v=b.touches?b.changedTouches[0]:b;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,g.resizeableElement.classList.add("slick-header-column-active");let T=null,P=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(T=0,P=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(P!==null&&(n.maxWidth?P+=n.maxWidth-(n.previousWidth||0):P=null),T+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let x=0,S=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(S!==null&&(n.maxWidth?S+=n.maxWidth-(n.previousWidth||0):S=null),x+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));T===null&&(T=1e5),x===null&&(x=1e5),P===null&&(P=1e5),S===null&&(S=1e5),i=o+Math.min(T,S),r=o-Math.min(x,P)},onResize:(b,g)=>{let v=b.touches?b.changedTouches[0]:b;this.columnResizeDragging=!0;let T,P=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,D=this.getViewportInnerWidth();if(P<0){for(x=P,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(T=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<T?(x+=(n.previousWidth||0)-T,n.width=T):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=P,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let A=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(A>d&&F<D-this._options.frozenRightViewportMinWidth&&(d=A),n.width=F+this._options.frozenRightViewportMinWidth>D?d:A):n.width=A,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-P,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(T=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<T?(x+=(n.previousWidth||0)-T,n.width=T):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0)}this.hasFrozenColumns()&&S!==this.canvasWidthL&&(L.width(this._headerL,S+1e3),L.setStyleSize(this._paneHeaderR,"left",S)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:g.resizeableElement,resizeHandle:g.resizeableHandleElement})},onResizeEnd:(b,g)=>{g.resizeableElement.classList.remove("slick-header-column-active");let v=g.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:v}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let T;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(T=u[e].offsetWidth,n.previousWidth!==T&&n.rerenderOnResize&&this.invalidateAllRows());this.updateCanvasWidth(!0),this.render(),this.trigger(this.onColumnsResized,{triggeredByColumn:v}),window.clearTimeout(this._columnResizeTimer),this._columnResizeTimer=window.setTimeout(()=>{this.columnResizeDragging=!1},300)}}))}}setFrozenOptions(){if(this._options.frozenColumn=this._options.frozenColumn>=0&&this._options.frozenColumn<this.columns.length?parseInt(this._options.frozenColumn,10):-1,this._options.frozenRow>-1){this.hasFrozenRows=!0,this.frozenRowsHeight=this._options.frozenRow*this._options.rowHeight;let e=this.getDataLength();this.actualFrozenRow=this._options.frozenBottom?e-this._options.frozenRow:this._options.frozenRow}else this.hasFrozenRows=!1}autosizeColumn(e,t){let n=null,o=-1;if(typeof e=="number")n=this.columns[e],o=e;else if(typeof e=="string")for(let i=0;i<this.columns.length;i++)this.columns[i].id===e&&(n=this.columns[i],o=i);if(!n)return;let r=this.getCanvasNode(0,0);this.getColAutosizeWidth(n,o,r,t||!1,o)}treatAsLocked(e={}){return!e.ignoreHeaderText&&!e.sizeToRemaining&&e.contentSizePx===e.headerWidthPx&&(e.widthPx??0)<100}autosizeColumns(e,t){let n=!this._hiddenParents?.length;n&&this.cacheCssForHiddenInit(),this.internalAutosizeColumns(e,t),n&&this.restoreCssFromHiddenInit()}internalAutosizeColumns(e,t){if(e=e||this._options.autosizeColsMode,e===_n.LegacyForceFit||e===_n.LegacyOff){this.legacyAutosizeColumns();return}if(e===_n.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let n=this.getCanvasNode(0,0),o=this.getViewportInnerWidth(),r,i,a,l=!1,d=0,u=0,f=0,p=0,y=0;for(r=0;r<this.columns.length;r++)i=this.columns[r],this.getColAutosizeWidth(i,r,n,t||!1,r),y+=i.autoSize?.autosizeMode===sr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===sr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let w=d-u;if(e===_n.FitViewportToCols){let b=d+(this.scrollbarDimensions?.width??0);e=_n.IgnoreViewport,this._options.viewportMaxWidthPx&&b>this._options.viewportMaxWidthPx?(b=this._options.viewportMaxWidthPx,e=_n.FitColsToViewport):this._options.viewportMinWidthPx&&b<this._options.viewportMinWidthPx&&(b=this._options.viewportMinWidthPx,e=_n.FitColsToViewport),L.width(this._container,b)}if(e===_n.FitColsToViewport)if(w>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let b=o-u;i.autoSize?.sizeToRemaining?a=b*(i.autoSize?.widthPx||0)/w:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=_n.IgnoreViewport;else{let b=u-y,g=o-y-f;for(r=0;r<this.columns.length;r++)i=this.columns[r],!(!i||i.hidden)&&(a=i.width||0,i.autoSize?.autosizeMode!==sr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=g/b*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),b-=i.autoSize?.widthPx||0,g-=a)),this.treatAsLocked(i.autoSize)&&(a=i.autoSize?.widthPx||0,a<(i.minWidth||0)&&(a=i.minWidth||0)),i.rerenderOnResize&&i.width!==a&&(l=!0),i.width=a)}if(e===_n.IgnoreViewport)for(r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(a=this.columns[r].autoSize?.widthPx||0,this.columns[r].rerenderOnResize&&this.columns[r].width!==a&&(l=!0),this.columns[r].width=a);this.reRenderColumns(l)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===sr.Locked||i.autosizeMode===sr.Guide)return;let a=this.getDataLength(),l=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===sr.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],l.test(p)&&(p=Date.parse(p)),f=typeof p,f==="object"&&(p instanceof Date&&(f="date"),typeof moment<"u"&&p instanceof moment&&(f="moment")))}f==="boolean"&&(i.colValueArray=[!0,!1]),f==="number"&&(i.valueFilterMode=Sr.GetGreatestAndSub,i.rowSelectionMode=rs.AllRows),f==="string"&&(i.valueFilterMode=Sr.GetLongestText,i.rowSelectionMode=rs.AllRows,i.allowAddlPercent=5),f==="date"&&(i.colValueArray=[new Date(2009,8,30,12,20,20)]),f==="moment"&&typeof moment<"u"&&(i.colValueArray=[moment([2009,8,30,12,20,20])])}let d=i.contentSizePx=this.getColContentSize(e,t,n,o,r);d===0&&(d=i.widthPx||0);let u=i.allowAddlPercent?1+i.allowAddlPercent/100:1;d=d*u+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(i.autosizeMode===sr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=w=>this.getDataItem(w)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===rs.FirstRow&&(p.endIndex=0),y===rs.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===rs.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===Sr.DeDuplicate){let w={};for(l=p.startIndex;l<=p.endIndex;l++)w[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(w);else{p.valueArr=[];for(let b in w)w&&p.valueArr.push(b)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===Sr.GetGreatestAndSub){let w,b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>b&&(w=d,b=Math.abs(d));w=""+w,w=Array(w.length+1).join("9"),w=+w,p.valueArr=[w],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Sr.GetLongestTextAndSub){for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length);d=Array(u+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Sr.GetLongestText){u=0;let w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,w=l);d=p.getRowVal(w),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=L.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=L.createDomElement("div",{className:"slick-cell"},o);r.style.position="absolute",r.style.visibility="hidden",r.style.textOverflow="initial",r.style.whiteSpace="nowrap";let i,a,l=0,d="",u,f,p=e.autoSize.widthEvalMode===pd.TextOnly;if(e.autoSize?.widthEvalMode===pd.Auto){let y=!e.formatterOverride&&!e.formatter,w=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||w}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=L.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let l=L.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(l,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...L.classNameToList(e.headerCssClass)),t=o.offsetWidth,a.removeChild(o)}return t}legacyAutosizeColumns(){let e,t,n=0,o=0,r=0,i=[],a=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){i.push(0);continue}i.push(t.width||0),o+=t.width||0,t.resizable&&(n+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(r=o;o>a&&n;){let d=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e];if(!t.resizable||u<=t.minWidth||u<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(d*(u-f))||1;p=Math.min(p,u-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let d=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e],f;!t.resizable||t.maxWidth<=u?f=0:f=Math.min(Math.floor(d*u)-u,t.maxWidth-u||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let l=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(l=!0),this.columns[e].width=i[e]);this.reRenderColumns(l)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(n=>{for(let o=0;o<n.children.length;o++,e++){let r=n.children[o],i=((t[e]||{}).width||0)-this.headerColumnWidthDiff;L.width(r)!==i&&L.width(r,i)}}),this.updateColumnCaches()}applyColumnWidths(){let e=0,t=0,n;for(let o=0;o<this.columns.length;o++)this.columns[o]?.hidden||(t=this.columns[o].width||0,n=this.getColumnCssRules(o),n.left.style.left=`${e}px`,n.right.style.right=(this._options.frozenColumn!==-1&&o>this._options.frozenColumn?this.canvasWidthR:this.canvasWidthL)-e-t+"px",this._options.frozenColumn!==o&&(e+=this.columns[o].width)),this._options.frozenColumn===o&&(e=0)}setSortColumn(e,t){this.setSortColumns([{columnId:e,sortAsc:t}])}getColumnByIndex(e){let t;return this._headers.every(n=>{let o=n.children.length;return e<o?(t=n.children[e],!1):(e-=o,!0)}),t}setSortColumns(e){this.sortColumns=e;let t=this._options.numberedMultiColumnSort&&this.sortColumns.length>1;this._headers.forEach(o=>{let r=o.querySelectorAll(".slick-header-column-sorted");r.forEach(i=>{i.classList.remove("slick-header-column-sorted")}),r=o.querySelectorAll(".slick-sort-indicator"),r.forEach(i=>{i.classList.remove("slick-sort-indicator-asc"),i.classList.remove("slick-sort-indicator-desc")}),r=o.querySelectorAll(".slick-sort-indicator-numbered"),r.forEach(i=>{i.textContent=""})});let n=1;this.sortColumns.forEach(o=>{L.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(L.isDefined(r)){let i=this.getColumnByIndex(r);if(i){i.classList.add("slick-header-column-sorted");let a=i.querySelector(".slick-sort-indicator");a?.classList.add(o.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),t&&(a=i.querySelector(".slick-sort-indicator-numbered"),a&&(a.textContent=String(n)))}}n++})}getColumns(){return this.columns}getSortColumns(){return this.sortColumns}updateColumnCaches(){this.columnPosLeft=[],this.columnPosRight=[];let e=0;for(let t=0,n=this.columns.length;t<n;t++)!this.columns[t]||this.columns[t].hidden||(this.columnPosLeft[t]=e,this.columnPosRight[t]=e+(this.columns[t].width||0),this._options.frozenColumn===t?e=0:e+=this.columns[t].width||0)}updateColumnProps(){this.columnsById={};for(let e=0;e<this.columns.length;e++){let t=this.columns[e];t.width&&(t.widthRequest=t.width),this._options.mixinDefaults?(L.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),L.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=L.extend({},this._columnDefaults,t),t.autoSize=L.extend({},this._columnAutosizeDefaults,t.autoSize)),this.columnsById[t.id]=e,t.minWidth&&(t.width||0)<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&(t.width||0)>t.maxWidth&&(t.width=t.maxWidth)}}setColumns(e){this.trigger(this.onBeforeSetColumns,{previousColumns:this.columns,newColumns:e,grid:this}),this.columns=e,this.updateColumnsInternal(),this.trigger(this.onAfterSetColumns,{newColumns:e,grid:this})}updateColumns(){this.trigger(this.onBeforeUpdateColumns,{columns:this.columns,grid:this}),this.updateColumnsInternal()}updateColumnsInternal(){this.updateColumnProps(),this.updateColumnCaches(),this.initialized&&(this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setOverflow(),this.invalidateAllRows(),this.createColumnHeaders(),this.createColumnFooter(),this.removeCssRules(),this.createCssRules(),this.resizeCanvas(),this.updateCanvasWidth(),this.applyColumnHeaderWidths(),this.applyColumnWidths(),this.handleScroll(),this.getSelectionModel()?.refreshSelections())}getEditorLock(){return this._options.editorLock}getEditController(){return this.editController}setData(e,t){this.data=e,this.invalidateAllRows(),this.updateRowCount(),t&&this.scrollTo(0)}getData(){return this.data}getDataLength(){return this.data.getLength?this.data.getLength():this.data?.length??0}getDataLengthIncludingAddNew(){return this.getDataLength()+(this._options.enableAddRow&&(!this.pagingActive||this.pagingIsLastPage)?1:0)}getDataItem(e){return this.data.getItem?this.data.getItem(e):this.data[e]}hasDataView(){return!Array.isArray(this.data)}getItemMetadaWhenExists(e){return"getItemMetadata"in this.data?this.data.getItemMetadata(e):null}getFormatter(e,t){let n=this.data?.getItemMetadata?.(e);return(n?.columns&&(n.columns[t.id]||n.columns[this.getColumnIndex(t.id)]))?.formatter||n?.formatter||t.formatter||this._options.formatterFactory?.getFormatter(t)||this._options.defaultFormatter}getEditor(e,t){let n=this.columns[t],o=this.getItemMetadaWhenExists(e)?.columns;return o?.[n.id]?.editor!==void 0?o[n.id].editor:o?.[t]?.editor!==void 0?o[t].editor:n.editor||this._options?.editorFactory?.getEditor(n)}getDataItemValueForColumn(e,t){return this._options.dataItemColumnValueExtractor?this._options.dataItemColumnValueExtractor(e,t):e[t.field]}resetActiveCell(){this.setActiveCellInternal(null,!1)}unsetActiveCell(){L.isDefined(this.activeCellNode)&&(this.makeActiveCellNormal(),this.activeCellNode.classList.remove("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(e=>e.classList.remove("active")))}focus(){this.setFocus()}setFocus(){this.tabbingDirection===-1?this._focusSink.focus():this._focusSink2.focus()}setActiveCellInternal(e,t,n,o,r){if(this.unsetActiveCell(),this.activeCellNode=e,L.isDefined(this.activeCellNode)){let i=L.offset(this.activeCellNode),a=Math.floor(L.offset(L.parents(this.activeCellNode,".grid-canvas")[0]).top),l=L.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&l&&(a-=this._options.frozenBottom?L.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!L.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(u=>u.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(u=>u.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,n,r)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,n,r))}else this.activeRow=this.activeCell=null;o||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let n=this.getDataLength();return!(e<n&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=n||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let n=this.columns[this.activeCell],o=this.getFormatter(this.activeRow,n)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,n),n,t,this);this.applyFormatResultToCellNode(o,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,n){this.makeActiveCellEditable(e,t,n)}makeActiveCellEditable(e,t,n){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let o=this.columns[this.activeCell],r=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:r,column:o,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let i=e||this.getEditor(this.activeRow,this.activeCell);if(!i||typeof i!="function")return;!e&&!i.suppressClearOnEdit&&L.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let l=a&&(a[o.id]||a[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:l,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(d),r&&this.currentEditor&&(this.currentEditor.loadValue(r),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),n=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let o=e.currentEditor.validate();if(o.valid){let r=e.activeRow,i=e.activeCell,a=e.currentEditor,l=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let u={row:r,cell:i,editor:a,serializedValue:l,prevSerializedValue:d,execute:()=>{a.applyValue(t,l),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,d),e.updateRow(r),e.trigger(e.onCellChange,{command:"undo",row:r,cell:i,item:t,column:n})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,n,u)):(u.execute(),e.makeActiveCellNormal(!0))}else{let u={};e.currentEditor.applyValue(u,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:u,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),L.width(e.activeCellNode),e.activeCellNode.classList.add("invalid")),e.trigger(e.onValidationError,{editor:e.currentEditor,cellNode:e.activeCellNode,validationResults:o,row:e.activeRow,cell:e.activeCell,column:n}),e.currentEditor.focus(),!1}e.makeActiveCellNormal(!0)}return!0}cancelCurrentEdit(){return this.makeActiveCellNormal(),!0}getSelectedRows(){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");return this.selectedRows.slice(0)}setSelectedRows(e,t){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");this&&this.getEditorLock&&!this.getEditorLock()?.isActive()&&this.selectionModel.setSelectedRanges(this.rowsToRanges(e),t||"SlickGrid.setSelectedRows")}trigger(e,t,n){let o=n||new oi(n,t),r=t||{};return r.grid=this,e.notify(r,o,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let n=e.getNativeEvent(),o=this.selectedRows.slice(0);this.selectedRows=[];let r={};for(let i=0;i<t.length;i++)for(let a=t[i].fromRow;a<=t[i].toRow;a++){r[a]||(this.selectedRows.push(a),r[a]={});for(let l=t[i].fromCell;l<=t[i].toCell;l++)this.canCellBeSelected(a,l)&&(r[a][this.columns[l].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",r),this.simpleArrayEquals(o,this.selectedRows)){let i=n?.detail?.caller??"click",a=new Set(this.getSelectedRows()),l=new Set(o),d=Array.from(a).filter(f=>!l.has(f)),u=Array.from(l).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:d,changedUnselectedRows:u},e)}}handleMouseWheel(e,t,n,o){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-o*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragInit,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDragStart(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragStart,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===mo.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===mo.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===mo.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===mo.LEFT?t=this.navigateLeft():e.which===mo.RIGHT?t=this.navigateRight():e.which===mo.UP?t=this.navigateUp():e.which===mo.DOWN?t=this.navigateDown():e.which===mo.TAB?t=this.navigateNext():e.which===mo.ENTER&&(this._options.editable&&(this.currentEditor?this.activeRow===this.getDataLength()?this.navigateDown():this.commitEditAndSetFocus():this.getEditorLock()?.commitCurrentEdit()&&this.makeActiveCellEditable(void 0,void 0,e)),t=!0)}else e.which===mo.TAB&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&(t=this.navigatePrev());if(t){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch{}}}handleClick(e){let t=e instanceof oi?e.getNativeEvent():e;if(!this.currentEditor&&(t.target!==document.activeElement||t.target.classList.contains("slick-cell"))){let o=this.getTextSelection();this.setFocus(),this.setTextSelection(o)}let n=this.getCellFromEvent(t);if(!(!n||this.currentEditor!==null&&this.activeRow===n.row&&this.activeCell===n.cell)&&(e=this.trigger(this.onClick,{row:n.row,cell:n.cell},e||t),!e.isImmediatePropagationStopped()&&this.canCellBeActive(n.row,n.cell)&&(!this.getEditorLock()?.isActive()||this.getEditorLock()?.commitCurrentEdit()))){this.scrollRowIntoView(n.row,!1);let o=t.target?.className===xN,r=this.columns[n.cell],i=!!(this._options.editable&&r?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(this.getCellNode(n.row,n.cell),null,o,i,t)}}handleContextMenu(e){let t=e.target.closest(".slick-cell");t&&(this.activeCellNode===t&&this.currentEditor!==null||this.trigger(this.onContextMenu,{},e))}handleDblClick(e){let t=this.getCellFromEvent(e);!t||this.currentEditor!==null&&this.activeRow===t.row&&this.activeCell===t.cell||(this.trigger(this.onDblClick,{row:t.row,cell:t.cell},e),!e.defaultPrevented&&this._options.editable&&this.gotoCell(t.row,t.cell,!0,e))}handleHeaderMouseEnter(e){let t=L.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=L.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=L.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=L.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseLeave,{column:t,grid:this},e)}handleHeaderContextMenu(e){let t=e.target.closest(".slick-header-column"),n=t&&L.storage.get(t,"column");this.trigger(this.onHeaderContextMenu,{column:n},e)}handleHeaderClick(e){if(!this.columnResizeDragging){let t=e.target.closest(".slick-header-column"),n=t&&L.storage.get(t,"column");n&&this.trigger(this.onHeaderClick,{column:n},e)}}handlePreHeaderContextMenu(e){this.trigger(this.onPreHeaderContextMenu,{node:e.target},e)}handlePreHeaderClick(e){this.columnResizeDragging||this.trigger(this.onPreHeaderClick,{node:e.target},e)}handleFooterContextMenu(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&L.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&L.storage.get(t,"column");this.trigger(this.onFooterClick,{column:n},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let n=!1,o=!1,r=()=>{n?o=!0:a()},i=()=>{o=!1},a=()=>{n=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(l,t),e.call(this)},l=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof oi?e.getNativeEvent():e,n=t.touches?t.touches[0]:t,o=t.target.closest(".slick-cell");if(!o)return null;let r=this.getRowFromNode(o.parentNode);if(this.hasFrozenRows){let a=0,l=L.offset(L.parents(o,".grid-canvas")[0]);L.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?L.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-l.left,n.clientY-l.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!L.isDefined(r)||!L.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&L.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!L.isDefined(t)&&!e.innerHTML)return;let o=t;typeof o=="number"||typeof o=="boolean"?e.textContent=o:(o=this.sanitizeHtmlString(t),this._options.enableHtmlRendering&&o?e.innerHTML=o:e.textContent=o)}}getCanvasNode(e,t){return this._getContainerElement(this.getCanvases(),e,t)}getActiveCanvasNode(e){return e===void 0?this._activeCanvasNode:(e instanceof oi&&(e=e.getNativeEvent()),this._activeCanvasNode=e?.target.closest(".grid-canvas"),this._activeCanvasNode)}getCanvases(){return this._canvas}getViewportNode(e,t){return this._getContainerElement(this.getViewports(),e,t)}getViewports(){return this._viewport}getActiveViewportNode(e){return this.setActiveViewportNode(e),this._activeViewportNode}setActiveViewportNode(e){return e instanceof oi&&(e=e.getNativeEvent()),this._activeViewportNode=e?.target.closest(".slick-viewport"),this._activeViewportNode}getHeadersWidth(){this.headersWidth=this.headersWidthL=this.headersWidthR=0;let e=!this._options.autoHeight,t=0,n=this.columns.length;for(t=0;t<n;t++){if(!this.columns[t]||this.columns[t].hidden)continue;let o=this.columns[t].width;this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=o||0:this.headersWidthL+=o||0}return e&&(this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=this.scrollbarDimensions?.width??0:this.headersWidthL+=this.scrollbarDimensions?.width??0),this.hasFrozenColumns()?(this.headersWidthL=this.headersWidthL+1e3,this.headersWidthR=Math.max(this.headersWidthR,this.viewportW)+this.headersWidthL,this.headersWidthR+=this.scrollbarDimensions?.width??0):(this.headersWidthL+=this.scrollbarDimensions?.width??0,this.headersWidthL=Math.max(this.headersWidthL,this.viewportW)+1e3),this.headersWidth=this.headersWidthL+this.headersWidthR,Math.max(this.headersWidth,this.viewportW)+1e3}getCanvasWidth(){let e=this.getViewportInnerWidth(),t=this.columns.length;for(this.canvasWidthL=this.canvasWidthR=0;t--;)!this.columns[t]||this.columns[t].hidden||(this.hasFrozenColumns()&&t>this._options.frozenColumn?this.canvasWidthR+=this.columns[t].width||0:this.canvasWidthL+=this.columns[t].width||0);let n=this.canvasWidthL+this.canvasWidthR;if(this._options.fullWidthRows){let o=Math.max(n,e)-n;o>0&&(n+=o,this.hasFrozenColumns()?this.canvasWidthR+=o:this.canvasWidthL+=o)}return n}updateCanvasWidth(e){let t=this.canvasWidth,n=this.canvasWidthL,o=this.canvasWidthR;this.canvasWidth=this.getCanvasWidth(),this._options.createTopHeaderPanel&&L.width(this._topHeaderPanel,this._options.topHeaderPanelWidth??this.canvasWidth);let r=this.canvasWidth!==t||this.canvasWidthL!==n||this.canvasWidthR!==o;if(r||this.hasFrozenColumns()||this.hasFrozenRows)if(L.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),L.width(this._headerL,this.headersWidthL),L.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=L.width(this._container)||0;if(i>0&&this.canvasWidthL>i&&this._options.throwWhenFrozenNotAllViewable)throw new Error("[SlickGrid] Frozen columns cannot be wider than the actual grid container width. Make sure to have less columns freezed or make your grid container wider");L.width(this._canvasTopR,this.canvasWidthR),L.width(this._paneHeaderL,this.canvasWidthL),L.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),L.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),L.width(this._paneTopL,this.canvasWidthL),L.setStyleSize(this._paneTopR,"left",this.canvasWidthL),L.width(this._paneTopR,this.viewportW-this.canvasWidthL),L.width(this._headerRowScrollerL,this.canvasWidthL),L.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),L.width(this._headerRowL,this.canvasWidthL),L.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(L.width(this._footerRowScrollerL,this.canvasWidthL),L.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),L.width(this._footerRowL,this.canvasWidthL),L.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&L.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),L.width(this._viewportTopL,this.canvasWidthL),L.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(L.width(this._paneBottomL,this.canvasWidthL),L.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),L.width(this._viewportBottomL,this.canvasWidthL),L.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),L.width(this._canvasBottomL,this.canvasWidthL),L.width(this._canvasBottomR,this.canvasWidthR))}else L.width(this._paneHeaderL,"100%"),L.width(this._paneTopL,"100%"),L.width(this._headerRowScrollerL,"100%"),L.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(L.width(this._footerRowScrollerL,"100%"),L.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&L.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),L.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(L.width(this._viewportBottomL,"100%"),L.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),L.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),L.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(L.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),L.width(this._footerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0))),(r||e)&&this.applyColumnWidths()}getPreHeaderPanel(){return this._preHeaderPanel}getPreHeaderPanelLeft(){return this._preHeaderPanel}getPreHeaderPanelRight(){return this._preHeaderPanelR}getTopHeaderPanel(){return this._topHeaderPanel}setPaneVisibility(){this.hasFrozenColumns()?(L.show(this._paneHeaderR),L.show(this._paneTopR),this.hasFrozenRows?(L.show(this._paneBottomL),L.show(this._paneBottomR)):(L.hide(this._paneBottomR),L.hide(this._paneBottomL))):(L.hide(this._paneHeaderR),L.hide(this._paneTopR),L.hide(this._paneBottomR),this.hasFrozenRows?L.show(this._paneBottomL):(L.hide(this._paneBottomR),L.hide(this._paneBottomL)))}setOverflow(){if(this._viewportTopL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportTopR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?this.hasFrozenRows?"scroll":"auto":this.hasFrozenRows?"scroll":"auto",this._viewportBottomL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportBottomR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"auto"):(this.hasFrozenRows,"auto"),this._options.viewportClass){let e=L.classNameToList(this._options.viewportClass);this._viewportTopL.classList.add(...e),this._viewportTopR.classList.add(...e),this._viewportBottomL.classList.add(...e),this._viewportBottomR.classList.add(...e)}}createCssRules(){this._style=document.createElement("style"),this._style.nonce=this._options.nonce||"",(this._options.shadowRoot||document.head).appendChild(this._style);let e=this._options.rowHeight-this.cellHeightDiff,t=[`.${this.uid} .slick-group-header-column { left: 1000px; }`,`.${this.uid} .slick-header-column { left: 1000px; }`,`.${this.uid} .slick-top-panel { height: ${this._options.topPanelHeight}px; }`,`.${this.uid} .slick-preheader-panel { height: ${this._options.preHeaderPanelHeight}px; }`,`.${this.uid} .slick-topheader-panel { height: ${this._options.topHeaderPanelHeight}px; }`,`.${this.uid} .slick-headerrow-columns { height: ${this._options.headerRowHeight}px; }`,`.${this.uid} .slick-footerrow-columns { height: ${this._options.footerRowHeight}px; }`,`.${this.uid} .slick-cell { height: ${e}px; }`,`.${this.uid} .slick-row { height: ${this._options.rowHeight}px; }`],n=this._style.sheet;if(n){t.forEach(o=>{n.insertRule(o)});for(let o=0;o<this.columns.length;o++)!this.columns[o]||this.columns[o].hidden||(n.insertRule(`.${this.uid} .l${o} { }`),n.insertRule(`.${this.uid} .r${o} { }`))}else this.createCssRulesAlternative(t)}createCssRulesAlternative(e){let t=document.createElement("template");t.innerHTML='<style type="text/css" rel="stylesheet" />',this._style=t.content.firstChild,(this._options.shadowRoot||document.head).appendChild(this._style);for(let n=0;n<this.columns.length;n++)!this.columns[n]||this.columns[n].hidden||(e.push(`.${this.uid} .l${n} { }`),e.push(`.${this.uid} .r${n} { }`));this._style.styleSheet?this._style.styleSheet.cssText=e.join(" "):this._style.appendChild(document.createTextNode(e.join(" ")))}getColumnCssRules(e){let t;if(!this.stylesheet){let n=(this._options.shadowRoot||document).styleSheets;for(this._options.devMode&&typeof this._options.devMode?.ownerNodeIndex=="number"&&this._options.devMode.ownerNodeIndex>=0&&(n[this._options.devMode.ownerNodeIndex].ownerNode=this._style),t=0;t<n.length;t++)if((n[t].ownerNode||n[t].owningElement)===this._style){this.stylesheet=n[t];break}if(!this.stylesheet)throw new Error("SlickGrid Cannot find stylesheet.");this.columnCssRulesL=[],this.columnCssRulesR=[];let o=this.stylesheet.cssRules||this.stylesheet.rules,r,i;for(t=0;t<o.length;t++){let a=o[t].selectorText;(r=/\.l\d+/.exec(a))?(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesL[i]=o[t]):(r=/\.r\d+/.exec(a))&&(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesR[i]=o[t])}}return{left:this.columnCssRulesL[e],right:this.columnCssRulesR[e]}}removeCssRules(){this._style?.remove(),this.stylesheet=null}getTopPanel(){return this._topPanels[0]}getTopPanels(){return this._topPanels}togglePanelVisibility(e,t,n,o){let r=o!==!1;if(this._options[e]!==n)if(this._options[e]=n,n){if(r){L.slideDown(t,this.resizeCanvas.bind(this));return}L.show(t),this.resizeCanvas()}else{if(r){L.slideUp(t,this.resizeCanvas.bind(this));return}L.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,n,o,r){let i=this.getDataItem(n),a=n<r&&!i,l="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(l+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(n);d?.cssClasses&&(l+=` ${d.cssClasses}`);let u=L.createDomElement("div",{className:`ui-widget-content ${l}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?u.style.transform=`translateY(${p}px)`:u.style.top=`${p}px`;let y;e.push(u),this.hasFrozenColumns()&&(y=u.cloneNode(!0),t.push(y));let w=this.columns.length,b,g,v,T,P=!0;for(let x=0,S=w;x<S;x++){if(P=!0,T=this.columns[x],!T||T.hidden)continue;g=1,v=1,b=null,d?.columns&&(b=d.columns[T.id]||d.columns[x],g=b?.colspan||1,v=b?.rowspan||1,g==="*"&&(g=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=g;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!T.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(P=!1),P){let D=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(D,n,x,C,v,b,i)}}else(T.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,b,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=L.classNameToList((y?" ":"")+f.addClasses).join(" "));let w=f?.toolTip?`${f.toolTip}`:"",b=L.createDomElement("div",{className:L.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});b.setAttribute("aria-describedby",this.uid+l.id),w&&b.setAttribute("title",w);let g=this.getCellHeight(t,r);if(r>1&&g!==this._options.rowHeight-this.cellHeightDiff&&(b.style.height=`${g||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&b.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(b,v)}e.appendChild(b),f.insertElementAfterTarget&&L.insertAfterElement(b,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):L.emptyElement(l)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,n=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,o=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,r=this._options.showColumnHeader?L.toFloat(L.height(this._headerScroller[0])):0;this.viewportH=L.toFloat(e.height)-L.toFloat(e.paddingTop)-L.toFloat(e.paddingBottom)-this.topPanelH-n-o-this.headerRowH-r-this.footerRowH-t}return this.numVisibleRows=Math.ceil(this.viewportH/this._options.rowHeight),this.viewportH}getViewportInnerWidth(){return this.viewportHasVScroll?this.viewportW-(this.scrollbarDimensions?.width||0):this.viewportW}getViewportWidth(){return this.viewportW=parseFloat(L.innerSize(this._container,"width"))||this._options.devMode&&this._options.devMode.containerClientWidth||0,this.viewportW}resizeCanvas(){if(!this.initialized)return;if(this.paneTopH=0,this.paneBottomH=0,this.viewportTopH=0,this.viewportBottomH=0,this.getViewportWidth(),this.getViewportHeight(),this.hasFrozenRows?this._options.frozenBottom?(this.paneTopH=this.viewportH-this.frozenRowsHeight-(this.scrollbarDimensions?.height??0),this.paneBottomH=this.frozenRowsHeight+(this.scrollbarDimensions?.height??0)):(this.paneTopH=this.frozenRowsHeight,this.paneBottomH=this.viewportH-this.frozenRowsHeight):this.paneTopH=this.viewportH,this.paneTopH+=this.topPanelH+this.headerRowH+this.footerRowH,this.hasFrozenColumns()&&this._options.autoHeight&&(this.paneTopH+=this.scrollbarDimensions?.height??0),this.viewportTopH=this.paneTopH-this.topPanelH-this.headerRowH-this.footerRowH,this._options.autoHeight){if(this.hasFrozenColumns()){let n=this.paneTopH+this._headerScrollerL.offsetHeight;n+=this.getVBoxDelta(this._container),this._options.showPreHeaderPanel&&(n+=this._options.preHeaderPanelHeight),L.height(this._container,n)}this._paneTopL.style.position="relative"}let e=L.height(this._paneHeaderL);e?e+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0:e=(this._options.showHeaderRow?this._options.headerRowHeight:0)+(this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight:0),L.setStyleSize(this._paneTopL,"top",e||e),L.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||L.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=L.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),L.setStyleSize(this._paneTopR,"top",n),L.height(this._paneTopR,this.paneTopH),L.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(L.setStyleSize(this._paneBottomL,"top",t),L.height(this._paneBottomL,this.paneBottomH),L.setStyleSize(this._paneBottomR,"top",t),L.height(this._paneBottomR,this.paneBottomH),L.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(L.width(this._paneBottomL,"100%"),L.height(this._paneBottomL,this.paneBottomH),L.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(L.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(L.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&L.height(this._canvasBottomR,this.frozenRowsHeight)):(L.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&L.height(this._canvasTopR,this.frozenRowsHeight))):L.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===_n.LegacyForceFit&&this.autosizeColumns(),this.updateRowCount(),this.handleScroll(),this.lastRenderedScrollLeft=-1,this.render()}updateRowCount(){if(!this.initialized)return;let e=this.getDataLength();e>0&&e!==this._prevDataLength&&(this._rowSpanIsCached=!1),this._options.enableCellRowSpan&&!this._rowSpanIsCached&&this.remapAllColumnsRowSpan(),this._prevDataLength=e;let t=this.getDataLengthIncludingAddNew(),n=0,o=this.hasFrozenRows&&!this._options.frozenBottom?L.height(this._canvasBottomL):L.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=L.height(this._viewportScrollContainerY),i=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&n*this._options.rowHeight>r,this.makeActiveCellNormal();let a=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let u=+d;u>a&&this.removeRowFromCache(u)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>a&&this.resetActiveCell(),o=this.h,this._options.autoHeight?this.h=this._options.rowHeight*n:(this.th=Math.max(this._options.rowHeight*n,r-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==o||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(L.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&L.height(this._canvasBottomR,this.h)):(L.height(this._canvasTopL,this.h),L.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let l=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:l?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-r+(this.scrollbarDimensions?.height??0)),this.h!==o&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===_n.LegacyForceFit&&i!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let n=this.getVisibleRange(e,t),o=Math.round(this.viewportH/this._options.rowHeight),r=this._options.minRowBuffer;return this.vScrollDir===-1?(n.top-=o,n.bottom+=r):this.vScrollDir===1?(n.top-=r,n.bottom+=o):(n.top-=r,n.bottom+=r),n.top=Math.max(0,n.top),n.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=this.viewportW,n.rightPx+=this.viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(this.canvasWidth,n.rightPx),n}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let n=t.rowNode,o=Array.from(n[0].children);n.length>1&&(o=o.concat(Array.from(n[1].children)));let r=o.length-1;for(;t.cellRenderQueue.length;){let i=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[i]=o[r--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let n=this.rowsCache[t],o=[];Object.keys(n.cellNodesByColumnIdx).forEach(a=>{if(!n.cellNodesByColumnIdx.hasOwnProperty(a))return;let l=+a;if(l<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[l]?.alwaysRenderColumn)return;let d=n.cellColSpans[l];(this.columnPosLeft[l]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(l||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(l)===this.activeCell||o.push(l))});let r,i;for(;L.isDefined(r=o.pop());)i=n.cellNodesByColumnIdx[r],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[r]?this.queuePostProcessedCellForCleanup(i,r,t):i.parentElement?.removeChild(i),delete n.cellColSpans[r],delete n.cellNodesByColumnIdx[r],this.postProcessedRows[t]&&delete this.postProcessedRows[t][r]}cleanUpAndRenderCells(e){let t,n=document.createElement("div"),o=[],r,i,a,l=this.columns.length;for(let f=e.top,p=e.bottom;f<=p;f++){if(t=this.rowsCache[f],!t)continue;this.ensureCellNodesInRowsCache(f),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(f)===null)&&this.cleanUpCells(e,f),r=0;let y=this.getItemMetadaWhenExists(f);y=y?.columns;let w=this.getDataItem(f);for(let b=0,g=l;b<g;b++){if(!this.columns[b]||this.columns[b].hidden)continue;if(this.columnPosLeft[b]>e.rightPx)break;if(L.isDefined(i=t.cellColSpans[b])){b+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[b].id]||y[b],i=a?.colspan??1,i==="*"&&(i=g-b));let v=i;if(!this.getParentRowSpanByCell(f,b)){if(this.columnPosRight[Math.min(g-1,b+v-1)]>e.leftPx){let T=this.getRowspan(f,b);this.appendCellHtml(n,f,b,v,T,a,w),r++}b+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let d,u;for(;L.isDefined(d=o.pop());){t=this.rowsCache[d];let f;for(;L.isDefined(f=t.cellRenderQueue.pop());)u=n.lastChild,u&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(u):t.rowNode[0].appendChild(u),t.cellNodesByColumnIdx[f]=u)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,l=new Set;for(let u=e.top,f=e.bottom;u<=f;u++)if(!(this.rowsCache[u]||this.hasFrozenRows&&this._options.frozenBottom&&u===this.getDataLength())){if(this.renderedRows++,o.push(u),l.add(u),this.rowsCache[u]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(u);p!==null&&l.add(p)}this.appendRowHtml(t,n,u,e,i),a.add(u),this.activeCellNode&&this.activeRow===u&&(r=!0),this.counter_rows_rendered++}let d=this.setDifference(l,a);if(d.size>0&&d.forEach(u=>{this.removeRowFromCache(u),o.push(u),this.rowsCache[u]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,u,e,i)}),o.length){let u=document.createElement("div"),f=document.createElement("div");t.forEach(p=>u.appendChild(p)),n.forEach(p=>f.appendChild(p));for(let p=0,y=o.length;p<y;p++)this.hasFrozenRows&&o[p]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasBottomL.appendChild(u.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasBottomL.appendChild(u.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasTopL.appendChild(u.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasTopL.appendChild(u.firstChild));r&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,n=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?n.style.transform=`translateY(${this.getRowTop(t)}px)`:n.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let n=L.extend(!0,{},t);this._options.frozenBottom?(n.top=this.actualFrozenRow,n.bottom=this.getDataLength()):(n.top=0,n.bottom=this._options.frozenRow),this.cleanUpAndRenderCells(n)}this.cleanUpAndRenderCells(t)}this.renderRows(t),this.hasFrozenRows&&(this._options.frozenBottom?this.renderRows({top:this.actualFrozenRow,bottom:this.getDataLength()-1,leftPx:t.leftPx,rightPx:t.rightPx}):this.renderRows({top:0,bottom:this._options.frozenRow-1,leftPx:t.leftPx,rightPx:t.rightPx})),this.postProcessFromRow=e.top,this.postProcessToRow=Math.min(this.getDataLengthIncludingAddNew()-1,e.bottom),this.startPostProcessing(),this.lastRenderedScrollTop=this.scrollTop,this.lastRenderedScrollLeft=this.scrollLeft,this.trigger(this.onRendered,{startRow:e.top,endRow:e.bottom,grid:this})}getFrozenRowOffset(e){let t=0;return this.hasFrozenRows?this._options.frozenBottom?e>=this.actualFrozenRow?this.h<this.viewportTopH?t=this.actualFrozenRow*this._options.rowHeight:t=this.h:t=0:e>=this.actualFrozenRow?t=this.frozenRowsHeight:t=0:t=0,t}bindAncestorScrollEvents(){let e=this.hasFrozenRows&&!this._options.frozenBottom?this._canvasBottomL:this._canvasTopL;for(;(e=e.parentNode)!==document.body&&e;)(e===this._viewportTopL||e.scrollWidth!==e.clientWidth||e.scrollHeight!==e.clientHeight)&&(this._boundAncestors.push(e),this._bindingEventService.bind(e,"scroll",this.handleActiveCellPositionChange.bind(this)))}unbindAncestorScrollEvents(){this._boundAncestors.forEach(e=>{this._bindingEventService.unbindByEventName(e,"scroll")}),this._boundAncestors=[]}setScroller(){this.hasFrozenColumns()?(this._headerScrollContainer=this._headerScrollerR,this._headerRowScrollContainer=this._headerRowScrollerR,this._footerRowScrollContainer=this._footerRowScrollerR,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomR,this._viewportScrollContainerY=this._viewportTopR):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomR:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopR):(this._headerScrollContainer=this._headerScrollerL,this._headerRowScrollContainer=this._headerRowScrollerL,this._footerRowScrollContainer=this._footerRowScrollerL,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomL,this._viewportScrollContainerY=this._viewportTopL):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomL:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopL)}scrollTo(e){e=Math.max(e,0),e=Math.min(e,(this.th||0)-L.height(this._viewportScrollContainerY)+(this.viewportHasHScroll||this.hasFrozenColumns()?this.scrollbarDimensions?.height??0:0));let t=this.offset;this.offset=Math.round(this.page*(this.cj||0)),this.page=Math.min((this.n||0)-1,Math.floor(e/(this.ph||0)));let n=e-this.offset;if(this.offset!==t){let o=this.getVisibleRange(n);this.cleanupRows(o),this.updateRowPositions()}this.prevScrollTop!==n&&(this.vScrollDir=this.prevScrollTop+t<n+this.offset?1:-1,this.lastRenderedScrollTop=this.scrollTop=this.prevScrollTop=n,this.hasFrozenColumns()&&(this._viewportTopL.scrollTop=n),this.hasFrozenRows&&(this._viewportBottomL.scrollTop=this._viewportBottomR.scrollTop=n),this._viewportScrollContainerY&&(this._viewportScrollContainerY.scrollTop=n),this.trigger(this.onViewportChanged,{}))}handleHeaderRowScroll(){let e=this._headerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handleFooterRowScroll(){let e=this._footerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handlePreHeaderPanelScroll(){this.handleElementScroll(this._preHeaderPanelScroller)}handleTopHeaderPanelScroll(){this.handleElementScroll(this._topHeaderPanelScroller)}handleElementScroll(e){let t=e.scrollLeft;t!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=t)}handleScroll(e){return this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollLeft=this._viewportScrollContainerX.scrollLeft,this._handleScroll(e?"scroll":"system")}_handleScroll(e="system"){let t=this._viewportScrollContainerY.scrollHeight-this._viewportScrollContainerY.clientHeight,n=this._viewportScrollContainerY.scrollWidth-this._viewportScrollContainerY.clientWidth;t=Math.max(0,t),n=Math.max(0,n),this.scrollTop>t&&(this.scrollTop=t,this.scrollHeight=t),this.scrollLeft>n&&(this.scrollLeft=n);let o=Math.abs(this.scrollTop-this.prevScrollTop),r=Math.abs(this.scrollLeft-this.prevScrollLeft);if(r&&(this.prevScrollLeft=this.scrollLeft,this._viewportScrollContainerX.scrollLeft=this.scrollLeft,this._headerScrollContainer.scrollLeft=this.scrollLeft,this._topPanelScrollers[0].scrollLeft=this.scrollLeft,this._options.createFooterRow&&(this._footerRowScrollContainer.scrollLeft=this.scrollLeft),this._options.createPreHeaderPanel&&(this.hasFrozenColumns()?this._preHeaderPanelScrollerR.scrollLeft=this.scrollLeft:this._preHeaderPanelScroller.scrollLeft=this.scrollLeft),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller.scrollLeft=this.scrollLeft),this.hasFrozenColumns()?(this.hasFrozenRows&&(this._viewportTopR.scrollLeft=this.scrollLeft),this._headerRowScrollerR.scrollLeft=this.scrollLeft):(this.hasFrozenRows&&(this._viewportTopL.scrollLeft=this.scrollLeft),this._headerRowScrollerL.scrollLeft=this.scrollLeft)),o&&!this._options.autoHeight)if(this.vScrollDir=this.prevScrollTop<this.scrollTop?1:-1,this.prevScrollTop=this.scrollTop,e==="mousewheel"&&(this._viewportScrollContainerY.scrollTop=this.scrollTop),this.hasFrozenColumns()&&(this.hasFrozenRows&&!this._options.frozenBottom?this._viewportBottomL.scrollTop=this.scrollTop:this._viewportTopL.scrollTop=this.scrollTop),o<this.viewportH)this.scrollTo(this.scrollTop+this.offset);else{let i=this.offset;this.h===this.viewportH?this.page=0:this.page=Math.min(this.n-1,Math.floor(this.scrollTop*((this.th-this.viewportH)/(this.h-this.viewportH))*(1/this.ph))),this.offset=Math.round(this.page*this.cj),i!==this.offset&&this.invalidateAllRows()}if(r||o){let i=Math.abs(this.lastRenderedScrollLeft-this.scrollLeft),a=Math.abs(this.lastRenderedScrollTop-this.scrollTop);(i>20||a>20)&&(this._options.forceSyncScrolling||a<this.viewportH&&i<this.viewportW?this.render():this.scrollThrottle.enqueue(),this.trigger(this.onViewportChanged,{}))}return this.trigger(this.onScroll,{triggeredBy:e,scrollHeight:this.scrollHeight,scrollLeft:this.scrollLeft,scrollTop:this.scrollTop}),!!(r||o)}scrollCellIntoView(e,t,n){if(this.scrollRowIntoView(e,n),t<=this._options.frozenColumn)return;let o=this.getColspan(e,t);this.internalScrollColumnIntoView(this.columnPosLeft[t],this.columnPosRight[t+(o>1?o-1:0)])}internalScrollColumnIntoView(e,t){let n=this.scrollLeft+L.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>n&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let n=[],o=null;for(let r=0,i=this.columns.length;r<i;r++){let a=this._colsWithRowSpanCache[r];if(a)for(let l of Array.from(a)){let[d,u]=l.split(":").map(Number);if(e>=d&&e<=u)if(t==="columns")n.push(r);else{o=d;break}}}return t==="columns"?n:o}getParentRowSpanByCell(e,t,n=!0){let o=null,r=this._colsWithRowSpanCache[t]||new Set;for(let i of Array.from(r)){let[a,l]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=l){o={start:a,end:l,range:i};break}}return o}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(n=>{let o=+n,r=t.columns[o],i=+(r?.colspan||1),a=+(r?.rowspan||1);this.remapRowSpanMetadata(e,o,i,a)})}remapRowSpanMetadata(e,t,n,o){var r,i,a;if(o>1){let l=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(l),n>1)for(let d=1;d<n;d++)(i=this._colsWithRowSpanCache)[a=t+d]??(i[a]=new Set),this._colsWithRowSpanCache[t+d].add(l)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let n=L.height(this._viewportScrollContainerY),o=this.hasFrozenRows&&!this._options.frozenBottom?e-this._options.frozenRow:e,r=o*this._options.rowHeight,i=(o+1)*this._options.rowHeight-n+(this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0);(o+1)*this._options.rowHeight>this.scrollTop+n+this.offset?(this.scrollTo(t?r:i),this.render()):o*this._options.rowHeight<this.scrollTop+this.offset&&(this.scrollTo(t?i:r),this.render())}}scrollRowToTop(e){this.scrollTo(e*this._options.rowHeight),this.render()}scrollPage(e){let t=e*this.numVisibleRows,n=this.scrollTop+this._options.rowHeight-1;if(this.scrollTo((this.getRowFromPosition(n)+t)*this._options.rowHeight),this.render(),this._options.enableCellNavigation&&L.isDefined(this.activeRow)){let o=this.activeRow+t,r=this.getDataLengthIncludingAddNew();o>=r&&(o=r-1),o<0&&(o=0);let i=e===1?this.gotoDown(o-1||0,this.activeCell,this.activePosY,this.activePosX):this.gotoUp(o+1,this.activeCell,this.activePosY,this.activePosX);this.navigateToPos(i)}}navigatePageDown(){this.scrollPage(1)}navigatePageUp(){this.scrollPage(-1)}navigateTop(){this.unsetActiveCell(),this.navigateToRow(0)}navigateBottom(){let e=this.getDataLength()-1,t=this.getParentRowSpanByCell(e,this.activeCell)?.start??e;do if(this._options.enableCellRowSpan&&this.setActiveRow(t),this.navigateToRow(t)&&this.activeCell===this.activePosX||!L.isDefined(this.activeCell))break;while(--t>0)}navigateToRow(e){let t=this.getDataLength();if(!t)return!1;e<0?e=0:e>=t&&(e=t-1),this.scrollCellIntoView(e,0,!0);let n=!L.isDefined(this.activeCell)||!L.isDefined(this.activeRow);if(this._options.enableCellNavigation&&L.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!L.isDefined(this.activeCell)||o===this.activeCell)&&(n=!0)),o+=this.getColspan(e,o);r!==null?(this.setActiveCellInternal(this.getCellNode(e,r)),this.activePosX=i):this.resetActiveCell()}return n}getColspan(e,t){let n=this.getItemMetadaWhenExists(e);if(!n||!n.columns)return 1;t>=this.columns.length&&(t=this.columns.length-1);let o=(n.columns[this.columns[t].id]||n.columns[t])?.colspan;return o==="*"?o=this.columns.length-t:o=o||1,o}queuePostProcessedRowForCleanup(e,t,n){this.postProcessgroupId++,typeof t=="object"&&Object.keys(t).forEach(o=>{t.hasOwnProperty(o)&&this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e.cellNodesByColumnIdx[+o],columnIdx:+o,rowIdx:n})}),e.rowNode||(e.rowNode=[]),this.postProcessedCleanupQueue.push({actionType:"R",groupId:this.postProcessgroupId,node:e.rowNode}),e.rowNode?.forEach(o=>o.remove())}queuePostProcessedCellForCleanup(e,t,n){this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e,columnIdx:t,rowIdx:n}),e.remove()}applyFormatResultToCellNode(e,t,n){if(e==null&&(e=""),Object.prototype.toString.call(e)!=="[object Object]"){this.applyHtmlCode(t,e);return}let o=e.html||e.text;this.applyHtmlCode(t,o),e.removeClasses&&!n&&t.classList.remove(...L.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...L.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,n=this.rowsCache[t];if(!(!n||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(n.cellNodesByColumnIdx).forEach(o=>{if(n.cellNodesByColumnIdx.hasOwnProperty(o)){let r=+o,i=this.columns[r],a=this.postProcessedRows[t][r];if(i.asyncPostRender&&a!=="R"){let l=n.cellNodesByColumnIdx[r];l&&i.asyncPostRender(l,t,this.getDataItem(t),i,a==="C"),this.postProcessedRows[t][r]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(n=>{n.remove()}),t?.actionType==="C"){let n=this.columns[t.columnIdx];n.asyncPostRenderCleanup&&t.node&&n.asyncPostRenderCleanup(t.node,t.rowIdx,n)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let n,o,r;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(i=>{this.rowsCache&&(r=t?.[i],o=e?.[i],r&&Object.keys(r).forEach(a=>{(!o||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.remove(r[a]))}),o&&Object.keys(o).forEach(a=>{(!r||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.add(o[a]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let n=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,n),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,n=250){let o=(r,i)=>{i<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{i%2===0?r.classList.add(this._options.cellFlashingCssClass||""):r.classList.remove(this._options.cellFlashingCssClass||""),o(r,i-1)},n))};if(this.rowsCache[e]){let r=this.getCellNode(e,t);r&&o(r,5)}}highlightRow(e,t){let n=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(n?.rowNode)&&this._options.rowHighlightCssClass&&(n.rowNode.forEach(o=>o.classList.add(...L.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...L.classNameToList(this._options.rowHighlightCssClass)))},t))}_getContainerElement(e,t,n){if(!e)return;t||(t=0),n||(n=0);let o=typeof t=="number"?t:this.getColumnIndex(t),r=this.hasFrozenRows&&n>=this.actualFrozenRow+(this._options.frozenBottom?0:1),i=this.hasFrozenColumns()&&o>this._options.frozenColumn;return e[(r?2:0)+(i?1:0)]}measureScrollbar(){let e="";this._viewport.forEach(r=>e+=r.className);let t=L.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=L.createDomElement("div",{style:{width:"200px",height:"200px",overflow:"auto"}},t),o={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return n.remove(),t.remove(),o}getMaxSupportedCssHeight(){let e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?this._options.ffMaxSupportedCssHeight:this._options.maxSupportedCssHeight,n=L.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;L.height(n,o);let r=L.height(n);if(o>t||r!==o)break;e=o}return n.remove(),e}getUID(){return this.uid}getHeaderColumnWidthDiff(){return this.headerColumnWidthDiff}getScrollbarDimensions(){return this.scrollbarDimensions}getDisplayedScrollbarDimensions(){return{width:this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0,height:this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0}}getAbsoluteColumnMinWidth(){return this.absoluteColumnMinWidth}getVBoxDelta(e){let t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=getComputedStyle(e),o=0;return t.forEach(r=>o+=L.toFloat(n[r])),o}measureCellPaddingAndBorder(){let e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=this._headers[0];this.headerColumnWidthDiff=this.headerColumnHeightDiff=0,this.cellWidthDiff=this.cellHeightDiff=0;let o=L.createDomElement("div",{className:"ui-state-default slick-state-default slick-header-column",style:{visibility:"hidden"},textContent:"-"},n),r=getComputedStyle(o);r.boxSizing!=="border-box"&&(e.forEach(a=>this.headerColumnWidthDiff+=L.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=L.toFloat(r[a]))),o.remove();let i=L.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=L.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=L.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=L.toFloat(r[a]))),i.remove(),this.absoluteColumnMinWidth=Math.max(this.headerColumnWidthDiff,this.cellWidthDiff)}clearAllTimers(){window.clearTimeout(this._columnResizeTimer),window.clearTimeout(this._executionBlockTimer),window.clearTimeout(this._flashCellTimer),window.clearTimeout(this._highlightRowTimer),window.clearTimeout(this.h_editorLoader)}LogColWidths(){let e="Col Widths:";for(let t=0;t<this.columns.length;t++)e+=" "+(this.columns[t].hidden?"H":this.columns[t].width);console.log(e)}simpleArrayEquals(e,t){return Array.isArray(e)&&Array.isArray(t)&&t.sort().toString()!==e.sort().toString()}defaultFormatter(e,t,n){return L.isDefined(n)?(n+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""}cellExists(e,t){return!(e<0||e>=this.getDataLength()||t<0||t>=this.columns.length)}getCellFromNode(e){let t=/l\d+/.exec(e.className);if(!t)throw new Error(`SlickGrid getCellFromNode: cannot get cell - ${e.className}`);return parseInt(t[0].substr(1,t[0].length-1),10)}getRowFromNode(e){for(let t in this.rowsCache)if(this.rowsCache){for(let n in this.rowsCache[t].rowNode)if(this.rowsCache[t].rowNode?.[+n]===e)return t?parseInt(t,10):0}return null}clearTextSelection(){if(document.selection?.empty)try{document.selection.empty()}catch{}else if(window.getSelection){let e=window.getSelection();e?.removeAllRanges&&e.removeAllRanges()}}disableSelection(e){e.forEach(t=>{t.setAttribute("unselectable","on"),t.style.mozUserSelect="none",this._bindingEventService.bind(t,"selectstart",()=>!1)})}getPubSubService(){return this._pubSubService}getCellFromPoint(e,t){let n=this.getRowFromPosition(t),o=0,r=0;for(let i=0;i<this.columns.length&&r<=e;i++)this.columns[i]&&(r+=this.columns[i].width,o++);return o-=1,n<-1&&(n=-1),{row:n,cell:o}}getPluginByName(e){for(let t=this.plugins.length-1;t>=0;t--)if(this.plugins[t]?.pluginName===e)return this.plugins[t]}getContainerNode(){return this._container}getCellHeight(e,t){let n=this._options.rowHeight||0;if(t>1){let o=e+t-1;n=this.getRowBottom(o)-this.getRowTop(e)}else{let o=this.getRowHeight();o!==n-this.cellHeightDiff&&(n=o)}return n-=this.cellHeightDiff,Math.ceil(n)}setDifference(e,t){return new Set(Array.from(e).filter(n=>!t.has(n)))}getCellNodeBox(e,t){if(!this.cellExists(e,t))return null;let n=this.getFrozenRowOffset(e),o=this.getRowTop(e)-n,r=o+this._options.rowHeight-1,i=0;for(let l=0;l<t;l++)!this.columns[l]||this.columns[l].hidden||(i+=this.columns[l].width||0,this._options.frozenColumn===l&&(i=0));let a=i+(this.columns[t]?.width||0);return{top:o,left:i,bottom:r,right:a}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let n=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let o=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&o.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&o.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===n&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,n=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let n=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&n!==e&&(console.log(`sanitizer altered html: ${e} --> ${n}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),n}getRowspan(e,t){let n=1,o=this.getItemMetadaWhenExists(e);return o?.columns&&Object.keys(o.columns).forEach(r=>{let i=Number(r);if(i===t){let a=o.columns[i];n=Number(a?.rowspan||1)}}),n}findFocusableRow(e,t,n){let o=e,r=this._colsWithRowSpanCache[t]||new Set,i=!1;return Array.from(r).forEach(a=>{let[l,d]=a.split(":").map(Number);!i&&e>=l&&e<=d&&(o=n==="up"?l:d,this.canCellBeActive(o,t)&&(i=!0))}),o<0&&(o=0),o}findFirstFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);if(n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)){o=t;break}t+=this.getColspan(n,t)}return{cell:o,row:n}}findLastFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)&&(o=t),t+=this.getColspan(n,t)}return{cell:o,row:n}}rowsToRanges(e){let t=[],n=this.columns.length-1;for(let o=0;o<e.length;o++)t.push(new RN(e[o],0,e[o],n));return t}findSpanStartingCell(e,t){let n=this.getParentRowSpanByCell(e,t),o=n!==null&&n.start!==e?n.start:e,r=0,i=0;for(;r<this.columns.length;){if(r+=this.getColspan(o,r),r>t)return r=i,{cell:r,row:o};i=r}return{cell:r,row:o}}gotoRight(e,t,n,o){if(t>=this.columns.length)return null;let r=t+1,i=n;do{let a=this.findSpanStartingCell(n,r);if(i=a.row,r=a.cell,this.canCellBeActive(i,r)&&r>t)break;r+=this.getColspan(i,a.cell)}while(r<this.columns.length);return r<this.columns.length?{row:i,cell:r,posX:r,posY:n}:null}gotoLeft(e,t,n,o){if(t<=0)return null;let r=this.findFirstFocusableCell(e);if(r.cell===null||r.cell>=t)return null;let i,a={row:e,cell:r.cell,posX:r.cell,posY:n};for(;;){if(i=this.gotoRight(a.row,a.cell,a.posY,a.posX),!i)return null;if(i.cell>=t){let l=this.findFocusableRow(n,a.cell,"up");return l!==a.row&&(a.row=l),a}a=i}}gotoDown(e,t,n,o){let r,i=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,o),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e<=i&&!this.canCellBeActive(e,r));return e<=i?{row:e,cell:r,posX:o,posY:e}:null}gotoUp(e,t,n,o){let r;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,o,"up"),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,r));return t<=this.columns.length?{row:e,cell:r,posX:o,posY:e}:null}gotoNext(e,t,n,o){if(!L.isDefined(e)&&!L.isDefined(t)&&(e=t=n=o=0,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoRight(e,t,n,o);if(!r){let i;for(;!r&&++n<this.getDataLength()+(this._options.enableAddRow?1:0);)i=this.findFirstFocusableCell(n),i.cell!==null&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoPrev(e,t,n,o){if(!L.isDefined(e)&&!L.isDefined(t)&&(e=n=this.getDataLengthIncludingAddNew()-1,t=o=this.columns.length-1,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoLeft(e,t,n,o);if(!r){let i;for(;!r&&--n>=0;)i=this.findLastFocusableCell(n),i.cell>-1&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoRowStart(e,t,n,o){let r=this.findFirstFocusableCell(e);return r.cell===null?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}gotoRowEnd(e,t,n,o){let r=this.findLastFocusableCell(e);return r.cell===-1?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}navigateRight(){return this.navigate("right")}navigateLeft(){return this.navigate("left")}navigateDown(){return this.navigate("down")}navigateUp(){return this.navigate("up")}navigateNext(){return this.navigate("next")}navigatePrev(){return this.navigate("prev")}navigateRowStart(){return this.navigate("home")}navigateRowEnd(){return this.navigate("end")}navigateTopStart(){return this.navigateToRow(0),this.navigate("home")}navigateBottomEnd(){return this.navigateBottom(),this.navigate("end")}navigate(e){if(!this._options.enableCellNavigation||!this.activeCellNode&&e!=="prev"&&e!=="next")return!1;if(!this.getEditorLock()?.commitCurrentEdit())return!0;this.setFocus(),this.unsetActiveCell();let t={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1};this.tabbingDirection=t[e];let n={up:this.gotoUp,down:this.gotoDown,left:this.gotoLeft,right:this.gotoRight,prev:this.gotoPrev,next:this.gotoNext,home:this.gotoRowStart,end:this.gotoRowEnd}[e].call(this,this.activeRow,this.activeCell,this.activePosY,this.activePosX);return this.navigateToPos(n)}navigateToPos(e){if(e){if(this.hasFrozenRows&&this._options.frozenBottom&&e.row===this.getDataLength())return;let t=e.row===this.getDataLength();return(!this._options.frozenBottom&&e.row>=this.actualFrozenRow||this._options.frozenBottom&&e.row<this.actualFrozenRow)&&this.scrollCellIntoView(e.row,e.cell,!t&&this._options.emulatePagingWhenScrolling),this.setActiveCellInternal(this.getCellNode(e.row,e.cell)),this.activePosX=e.posX,this.activePosY=e.posY,!0}else return this.setActiveCellInternal(this.getCellNode(this.activeRow,this.activeCell)),!1}getCellNode(e,t){if(this.rowsCache[e]){this.ensureCellNodesInRowsCache(e);try{return this.rowsCache[e].cellNodesByColumnIdx.length>t?this.rowsCache[e].cellNodesByColumnIdx[t]:null}catch{return this.rowsCache[e].cellNodesByColumnIdx[t]}}return null}setActiveCell(e,t,n,o,r){this.initialized&&(e>this.getDataLength()||e<0||t>=this.columns.length||t<0||this._options.enableCellNavigation&&(this.scrollCellIntoView(e,t,!1),this.setActiveCellInternal(this.getCellNode(e,t),n,o,r)))}setActiveRow(e,t,n){this.initialized&&(e>this.getDataLength()||e<0||(t??0)>=this.columns.length||(t??0)<0||(this.activeRow=e,n||this.scrollCellIntoView(e,t||0,!1)))}canCellBeActive(e,t){if(!this._options.enableCellNavigation||e>=this.getDataLengthIncludingAddNew()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden||(this.getParentRowSpanByCell(e,t)?.start??e)!==e)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.focusable!==void 0)return!!n.focusable;let o=n?.columns;return o?.[this.columns[t].id]?.focusable!==void 0?!!o[this.columns[t].id].focusable:o?.[t]?.focusable!==void 0?!!o[t].focusable:!!this.columns[t].focusable}canCellBeSelected(e,t){if(e>=this.getDataLength()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.selectable!==void 0)return!!n.selectable;let o=n?.columns&&(n.columns[this.columns[t].id]||n.columns[t]);return o?.selectable!==void 0?!!o.selectable:!!this.columns[t].selectable}gotoCell(e,t,n,o){if(!this.initialized||!this.canCellBeActive(e,t)||!this.getEditorLock()?.commitCurrentEdit())return;this.scrollCellIntoView(e,t,!1);let r=this.getCellNode(e,t),i=this.columns[t],a=!!(this._options.editable&&i?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(r,n||e===this.getDataLength()||this._options.autoEdit,null,a,o),this.currentEditor||this.setFocus()}};/**
|
|
239
239
|
* @license
|
|
240
240
|
* (c) 2009-present Michael Leibman
|
|
241
241
|
* michael{dot}leibman{at}gmail{dot}com
|
|
@@ -251,14 +251,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
251
251
|
* This increases the speed dramatically, but can only be done safely because there are no event handlers
|
|
252
252
|
* or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()
|
|
253
253
|
* and do proper cleanup.
|
|
254
|
-
*/const kN={asyncEditorLoading:!1,autosizeColsMode:iv.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function EN({SlickDataView:e=CN,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=mA,columns:r,getItemMetadata:i,groups:a,idPropertyName:l="id",items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:g=tA,options:v={},table:T}){
|
|
254
|
+
*/const kN={asyncEditorLoading:!1,autosizeColsMode:iv.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function EN({SlickDataView:e=CN,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=mA,columns:r,getItemMetadata:i,groups:a,idPropertyName:l="id",items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:g=tA,options:v={},table:T}){We.useEffect(()=>{const P=new lv,x=new aN({}),S=new dN({}),C=new e({groupItemMetadataProvider:a?P:void 0}),D=T.createGrid(C,[],v);D.setSelectionModel(new yN({selectActiveRow:!1})),D.registerPlugin(x),D.registerPlugin(P),i&&(C.getItemMetadata=i(C)),C.setItems(n?d.map((F,z)=>({...F,[l]:++z})):d.map(F=>({...F})),l),D.invalidate(),C.onRowCountChanged.subscribe(g(T)),C.onRowsChanged.subscribe(eA(D)),D.onAddNewRow.subscribe(u),D.onCellChange.subscribe(p),f&&D.onBeforeEditCell.subscribe(f),y&&D.onClick.subscribe(y),w&&D.onDblClick.subscribe(w),D.onSort.subscribe(o.getSortFunction(T.id)),D.onContextMenu.subscribe(fv(T));const A=nv(T);return x.onCommand.subscribe(A),b&&(S.onCommand.subscribe(b),D.registerPlugin(S)),a&&(T.grouping={groups:a,isGrouped:T.grouping.isGrouped??!0}),t?.(D),T.hotKeysBehavior.pushToCommandQueue(D),()=>{x.onCommand.unsubscribe(A),b&&S.onCommand.unsubscribe(b),D.onAddNewRow.unsubscribe(u),D.onCellChange.unsubscribe(p),f&&D.onBeforeEditCell.unsubscribe(f),y&&D.onClick.unsubscribe(y),w&&D.onDblClick.unsubscribe(w),T.reset()}},[d]),We.useEffect(()=>{const P=T.grid;!P||!v||(P.setOptions({...kN,...v}),P.render())},[v,d]),We.useEffect(()=>{const P=T.grid;if(P&&r.length){if(r[0].id===Cd){const x=new oN;P.setColumns([{...x.getColumnDefinition(),focusable:!1},...r.slice(1)]),P.registerPlugin(x)}else P.setColumns(r);ur.highlightAllColumns(T.filter.args,T.id),T.filter.register(P,T.id),P.invalidate(),T.totalCalculator?.calculate(P),T.notifyObservers(),o.restoreSorting(T)}},[r,d])}const PN=e=>(t,{grid:n,item:o})=>{DN(n,o),n.updateRowCount(),n.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(n)},DN=(e,t)=>{const n=e.getData(),o=n.getIdPropertyName(),i={...UN(n),...t,[o]:dv(e),isEdited:!0,isNew:!0};n.addItem(i)},ON=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:g,options:v,table:T})=>(EN({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u||PN(T),onBeforeEditCell:f,onCellChange:p||JN(T),onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:g,options:v,table:T}),GN(T),QN(T),ZN(T),O.jsx("div",{id:T.id,className:"slick-container"})),Gp=Xl`
|
|
255
255
|
50% {
|
|
256
256
|
background-color: #ffb1b1;
|
|
257
257
|
}
|
|
258
258
|
`;le(Ls)(({theme:e})=>({"& .slick-container":{userSelect:"none",maxWidth:"100%",height:"100%",maxHeight:"100%",color:e.palette.text.primary,borderColor:e.palette.background.paper,fontFamily:"inherit",fontSize:"0.75rem","& .slick-header-column":{"&.filter-active .slick-header-button::after":{width:"7px",height:"7px",content:"''",backgroundColor:"#2196f3",position:"absolute",borderRadius:"50%",border:"2px solid #f8f8f8",top:"3px",right:"3px"},"&:not([data-id=_checkbox_selector]):not([data-id=isEdited])":{"& .slick-column-name":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 16px)"}},"&.slick-state-hover":{"&.filter-active .slick-header-button::after":{border:"2px solid #e8e8e8"},"& .slick-header-button":{"&::before":{backgroundColor:"#e8e8e8"}}},"& .slick-header-button":{width:"19px",height:"12px","&::before":{position:"absolute",content:"''",width:"19px",height:"12px",top:"6px",right:"5px",backgroundImage:"repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",clipPath:"polygon(0% 0%, 100% 0%, 50% 110%)",backgroundColor:"#f8f8f8"}}},"& .slick-viewport":{backgroundColor:e.palette.background.paper,"& .grid-canvas":{"& .ui-widget-content.slick-row":{"&.even":{backgroundColor:e.palette.background.default},"& .slick-cell":{"&.active":{borderColor:"#007bff","& input":{color:e.palette.text.primary}},"&.selected":{color:e.palette.text.primary},"&.text-right":{textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Gp} infinite 0.5s linear`,"& input":{animation:`${Gp} infinite 0.5s linear`}},"& input.editor-text":{textAlign:"inherit"},"& select":{color:e.palette.text.primary,backgroundColor:e.palette.background.default},"& #autocomplete":{margin:0,padding:0,maxHeight:"300px",width:"100%",overflow:"auto",backgroundColor:e.palette.background.default,fontSize:"12px",boxShadow:"0 0 5px 1px gray","& div":{"&:hover":{cursor:"pointer"},"&.active":{},"& strong":{color:"#007bff"}}}}}}},"& .slick-footerrow":{backgroundColor:e.palette.background.default,borderTop:"1px solid silver","& .slick-footerrow-column":{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"5px",borderBottom:"none",fontWeight:"bold","&:last-child":{borderRight:"none"}}}}}));const MN={id:Cd,field:Cd};function IN(e,t,n){return n?"<span>✎</span>":""}const NN={id:"isEdited",name:"✎",field:"isEdited",formatter:IN,focusable:!1,sortable:!0,sortAs:jo.NUMBER,cssClass:"text-center",maxWidth:30};class AN{passed(t,n,o){if(!n[1]&&!n[2])return!0;switch(o){case Ve.Boolean:return this.boolean(t,n);case Ve.DateBetween:return this.dateBetween(t,n);case Ve.DateEqual:return this.dateEqual(t,n[1]);case Ve.DateFrom:return this.dateFrom(t,n[1]);case Ve.DateTo:return this.dateTo(t,n[1]);case Ve.MultipleSelect:return this.multipleSelect(t,n[1]);case Ve.NumberBetween:return this.numberBetween(t,n);case Ve.NumberEqual:return this.numberEqual(t,n[1]);case Ve.NumberFrom:return this.numberFrom(t,n[1]);case Ve.NumberTo:return this.numberTo(t,n[1]);case Ve.TextContain:return this.textContain(t,n[1]);case Ve.TextEqual:return this.textEqual(t,n[1]);case Ve.TextNotContain:return!this.textContain(t,n[1]);case Ve.TextNotEqual:return!this.textEqual(t,n[1])}}boolean(t,n){return n[1]?!!t:n[2]?!t:!0}dateBetween(t,n){const o=n[1],r=n[2];return o?r?this.dateFrom(t,o)&&this.dateTo(t,r):this.dateFrom(t,o):this.dateTo(t,r)}dateEqual(t,n){return n===t}dateFrom(t,n){return us(t)>=us(n)}dateTo(t,n){return us(t)<=us(n)}multipleSelect(t,n){const o=JSON.parse(n);return o.includes("All")?!0:o.includes(t)}numberBetween(t,n){const o=n[1]||0,r=n[2]||0;return o?r?this.numberFrom(t,o)&&this.numberTo(t,r):Number(t)>=Number(o):Number(t)<=Number(r)}numberEqual(t,n){return Number(n)===Number(t)}numberFrom(t,n){return Number(t)>=Number(n)}numberTo(t,n){return Number(t)<=Number(n)}textEqual(t,n){return(t||"").toLowerCase()===n.toLowerCase()}textContain(t,n){return(t||"").toLowerCase().match(n.toLowerCase())}}const FN=new AN,LN=[sn.Date,sn.Boolean,sn.Number];class $N extends tv{filterFn(t,n){if(!n.columnFilters)return!0;const o=this.grid;if(!o)return!0;const r=o.getColumns(),i=Object.keys(n.columnFilters);for(let a=0;a<i.length;a++){const l=i[a],d=r[o.getColumnIndex(l)],{filterId:u,group:f,value:p}=n.columnFilters[l];let y=t[d?.field];if(!LN.includes(f)){const w=d?.formatter;w&&(y=w(0,0,y,d,t,o))}if(!FN.passed(y,p,u))return!1}return!0}reset(){this.filter.reset(),this.tableId&&ur.highlightAllColumns(this.args,this.tableId)}}function VN(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var nl={exports:{}},jN=nl.exports,Kp;function WN(){return Kp||(Kp=1,function(e,t){(function(n,o){e.exports=o()})(jN,function(){var n;function o(){return n.apply(null,arguments)}function r(c){n=c}function i(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function a(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,h){return Object.prototype.hasOwnProperty.call(c,h)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var h;for(h in c)if(l(c,h))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function y(c,h){var m=[],_,I=c.length;for(_=0;_<I;++_)m.push(h(c[_],_));return m}function w(c,h){for(var m in h)l(h,m)&&(c[m]=h[m]);return l(h,"toString")&&(c.toString=h.toString),l(h,"valueOf")&&(c.valueOf=h.valueOf),c}function b(c,h,m,_){return Ph(c,h,m,_,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(c){return c._pf==null&&(c._pf=g()),c._pf}var T;Array.prototype.some?T=Array.prototype.some:T=function(c){var h=Object(this),m=h.length>>>0,_;for(_=0;_<m;_++)if(_ in h&&c.call(this,h[_],_,h))return!0;return!1};function P(c){var h=null,m=!1,_=c._d&&!isNaN(c._d.getTime());if(_&&(h=v(c),m=T.call(h.parsedDateParts,function(I){return I!=null}),_=h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&m),c._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _;return c._isValid}function x(c){var h=b(NaN);return c!=null?w(v(h),c):v(h).userInvalidated=!0,h}var S=o.momentProperties=[],C=!1;function D(c,h){var m,_,I,G=S.length;if(u(h._isAMomentObject)||(c._isAMomentObject=h._isAMomentObject),u(h._i)||(c._i=h._i),u(h._f)||(c._f=h._f),u(h._l)||(c._l=h._l),u(h._strict)||(c._strict=h._strict),u(h._tzm)||(c._tzm=h._tzm),u(h._isUTC)||(c._isUTC=h._isUTC),u(h._offset)||(c._offset=h._offset),u(h._pf)||(c._pf=v(h)),u(h._locale)||(c._locale=h._locale),G>0)for(m=0;m<G;m++)_=S[m],I=h[_],u(I)||(c[_]=I);return c}function A(c){D(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,o.updateOffset(this),C=!1)}function F(c){return c instanceof A||c!=null&&c._isAMomentObject!=null}function z(c){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+c)}function R(c,h){var m=!0;return w(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,c),m){var _=[],I,G,de,ke=arguments.length;for(G=0;G<ke;G++){if(I="",typeof arguments[G]=="object"){I+=`
|
|
259
259
|
[`+G+"] ";for(de in arguments[0])l(arguments[0],de)&&(I+=de+": "+arguments[0][de]+", ");I=I.slice(0,-2)}else I=arguments[G];_.push(I)}z(c+`
|
|
260
260
|
Arguments: `+Array.prototype.slice.call(_).join("")+`
|
|
261
|
-
`+new Error().stack),m=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(z(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function X(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,m;for(m in c)l(c,m)&&(h=c[m],X(h)?this[m]=h:this["_"+m]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var m=w({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(m[_]={},w(m[_],c[_]),w(m[_],h[_])):h[_]!=null?m[_]=h[_]:delete m[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(m[_]=w({},m[_]));return m}function H(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,m=[];for(h in c)l(c,h)&&m.push(h);return m};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,m){var _=this._calendar[c]||this._calendar.sameElse;return X(_)?_.call(h,m):_}function V(c,h,m){var _=""+Math.abs(c),I=h-_.length,G=c>=0;return(G?m?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+_}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,m,_){var I=_;typeof _=="string"&&(I=function(){return this[_]()}),c&&(se[c]=I),h&&(se[h[0]]=function(){return V(I.apply(this,arguments),h[1],h[2])}),m&&(se[m]=function(){return this.localeData().ordinal(I.apply(this,arguments),c)})}function J(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function ee(c){var h=c.match(W),m,_;for(m=0,_=h.length;m<_;m++)se[h[m]]?h[m]=se[h[m]]:h[m]=J(h[m]);return function(I){var G="",de;for(de=0;de<_;de++)G+=X(h[de])?h[de].call(I,c):h[de];return G}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||ee(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var m=5;function _(I){return h.longDateFormat(I)||I}for(ne.lastIndex=0;m>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,m-=1;return c}var ie={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function he(c){var h=this._longDateFormat[c],m=this._longDateFormat[c.toUpperCase()];return h||!m?h:(this._longDateFormat[c]=m.match(W).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var B="Invalid date";function re(){return this._invalidDate}var Q="%d",fe=/\d{1,2}/;function me(c){return this._ordinal.replace("%d",c)}var Ce={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ve(c,h,m,_){var I=this._relativeTime[m];return X(I)?I(c,h,m,_):I.replace(/%d/i,c)}function xe(c,h){var m=this._relativeTime[c>0?"future":"past"];return X(m)?m(h):m.replace(/%s/i,h)}var $e={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ae(c){return typeof c=="string"?$e[c]||$e[c.toLowerCase()]:void 0}function rt(c){var h={},m,_;for(_ in c)l(c,_)&&(m=Ae(_),m&&(h[m]=c[_]));return h}var Pe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ft(c){var h=[],m;for(m in c)l(c,m)&&h.push({unit:m,priority:Pe[m]});return h.sort(function(_,I){return _.priority-I.priority}),h}var Kt=/\d/,st=/\d\d/,Yt=/\d{3}/,Xt=/\d{4}/,on=/[+-]?\d{6}/,Ue=/\d\d?/,tt=/\d\d\d\d?/,Mn=/\d\d\d\d\d\d?/,hn=/\d{1,3}/,Me=/\d{1,4}/,Be=/[+-]?\d{1,6}/,vt=/\d+/,ln=/[+-]?\d+/,uo=/Z|[+-]\d\d:?\d\d/gi,pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Qt=/[+-]?\d+(\.\d{1,3})?/,vn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Jt=/^[1-9]\d?/,Wr=/^([1-9]\d|\d)/,Br;Br={};function Re(c,h,m){Br[c]=X(h)?h:function(_,I){return _&&m?m:h}}function yc(c,h){return l(Br,c)?Br[c](h._strict,h._locale):new RegExp(pa(c))}function pa(c){return Vn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,m,_,I,G){return m||_||I||G}))}function Vn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Sn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function qe(c){var h=+c,m=0;return h!==0&&isFinite(h)&&(m=Sn(h)),m}var Hr={};function mt(c,h){var m,_=h,I;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(G,de){de[h]=qe(G)}),I=c.length,m=0;m<I;m++)Hr[c[m]]=_}function yr(c,h){mt(c,function(m,_,I,G){I._w=I._w||{},h(m,I._w,I,G)})}function vc(c,h,m){h!=null&&l(Hr,c)&&Hr[c](h,m._a,m,c)}function zr(c){return c%4===0&&c%100!==0||c%400===0}var rn=0,U=1,pe=2,we=3,Ne=4,Ye=5,Je=6,Ze=7,Ge=8;j("Y",0,0,function(){var c=this.year();return c<=9999?V(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),Re("Y",ln),Re("YY",Ue,st),Re("YYYY",Me,Xt),Re("YYYYY",Be,on),Re("YYYYYY",Be,on),mt(["YYYYY","YYYYYY"],rn),mt("YYYY",function(c,h){h[rn]=c.length===2?o.parseTwoDigitYear(c):qe(c)}),mt("YY",function(c,h){h[rn]=o.parseTwoDigitYear(c)}),mt("Y",function(c,h){h[rn]=parseInt(c,10)});function Ut(c){return zr(c)?366:365}o.parseTwoDigitYear=function(c){return qe(c)+(qe(c)>68?1900:2e3)};var At=en("FullYear",!0);function Bt(){return zr(this.year())}function en(c,h){return function(m){return m!=null?(ho(this,c,m),o.updateOffset(this,h),this):jn(this,c)}}function jn(c,h){if(!c.isValid())return NaN;var m=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?m.getUTCMilliseconds():m.getMilliseconds();case"Seconds":return _?m.getUTCSeconds():m.getSeconds();case"Minutes":return _?m.getUTCMinutes():m.getMinutes();case"Hours":return _?m.getUTCHours():m.getHours();case"Date":return _?m.getUTCDate():m.getDate();case"Day":return _?m.getUTCDay():m.getDay();case"Month":return _?m.getUTCMonth():m.getMonth();case"FullYear":return _?m.getUTCFullYear():m.getFullYear();default:return NaN}}function ho(c,h,m){var _,I,G,de,ke;if(!(!c.isValid()||isNaN(m))){switch(_=c._d,I=c._isUTC,h){case"Milliseconds":return void(I?_.setUTCMilliseconds(m):_.setMilliseconds(m));case"Seconds":return void(I?_.setUTCSeconds(m):_.setSeconds(m));case"Minutes":return void(I?_.setUTCMinutes(m):_.setMinutes(m));case"Hours":return void(I?_.setUTCHours(m):_.setHours(m));case"Date":return void(I?_.setUTCDate(m):_.setDate(m));case"FullYear":break;default:return}G=m,de=c.month(),ke=c.date(),ke=ke===29&&de===1&&!zr(G)?28:ke,I?_.setUTCFullYear(G,de,ke):_.setFullYear(G,de,ke)}}function fn(c){return c=Ae(c),X(this[c])?this[c]():this}function $s(c,h){if(typeof c=="object"){c=rt(c);var m=ft(c),_,I=m.length;for(_=0;_<I;_++)this[m[_].unit](c[m[_].unit])}else if(c=Ae(c),X(this[c]))return this[c](h);return this}function bc(c,h){return(c%h+h)%h}var Vt;Array.prototype.indexOf?Vt=Array.prototype.indexOf:Vt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function wc(c,h){if(isNaN(c)||isNaN(h))return NaN;var m=bc(h,12);return c+=(h-m)/12,m===1?zr(c)?29:28:31-m%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),Re("M",Ue,Jt),Re("MM",Ue,st),Re("MMM",function(c,h){return h.monthsShortRegex(c)}),Re("MMMM",function(c,h){return h.monthsRegex(c)}),mt(["M","MM"],function(c,h){h[U]=qe(c)-1}),mt(["MMM","MMMM"],function(c,h,m,_){var I=m._locale.monthsParse(c,_,m._strict);I!=null?h[U]=I:v(m).invalidMonth=c});var rb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),mh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sb=vn,ib=vn;function ab(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||gh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function lb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[gh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function cb(c,h,m){var _,I,G,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)G=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(G,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(G,"").toLocaleLowerCase();return m?h==="MMM"?(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:null):(I=Vt.call(this._longMonthsParse,de),I!==-1?I:null):h==="MMM"?(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:(I=Vt.call(this._longMonthsParse,de),I!==-1?I:null)):(I=Vt.call(this._longMonthsParse,de),I!==-1?I:(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:null))}function db(c,h,m){var _,I,G;if(this._monthsParseExact)return cb.call(this,c,h,m);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(I=b([2e3,_]),m&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),!m&&!this._monthsParse[_]&&(G="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[_]=new RegExp(G.replace(".",""),"i")),m&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(m&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!m&&this._monthsParse[_].test(c))return _}}function yh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=qe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var m=h,_=c.date();return _=_<29?_:Math.min(_,wc(c.year(),m)),c._isUTC?c._d.setUTCMonth(m,_):c._d.setMonth(m,_),c}function vh(c){return c!=null?(yh(this,c),o.updateOffset(this,!0),this):jn(this,"Month")}function ub(){return wc(this.year(),this.month())}function hb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||bh.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=sb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function fb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||bh.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ib),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function bh(){function c(je,et){return et.length-je.length}var h=[],m=[],_=[],I,G,de,ke;for(I=0;I<12;I++)G=b([2e3,I]),de=Vn(this.monthsShort(G,"")),ke=Vn(this.months(G,"")),h.push(de),m.push(ke),_.push(ke),_.push(de);h.sort(c),m.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function pb(c,h,m,_,I,G,de){var ke;return c<100&&c>=0?(ke=new Date(c+400,h,m,_,I,G,de),isFinite(ke.getFullYear())&&ke.setFullYear(c)):ke=new Date(c,h,m,_,I,G,de),ke}function Vs(c){var h,m;return c<100&&c>=0?(m=Array.prototype.slice.call(arguments),m[0]=c+400,h=new Date(Date.UTC.apply(null,m)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function ma(c,h,m){var _=7+h-m,I=(7+Vs(c,0,_).getUTCDay()-h)%7;return-I+_-1}function wh(c,h,m,_,I){var G=(7+m-_)%7,de=ma(c,_,I),ke=1+7*(h-1)+G+de,je,et;return ke<=0?(je=c-1,et=Ut(je)+ke):ke>Ut(c)?(je=c+1,et=ke-Ut(c)):(je=c,et=ke),{year:je,dayOfYear:et}}function js(c,h,m){var _=ma(c.year(),h,m),I=Math.floor((c.dayOfYear()-_-1)/7)+1,G,de;return I<1?(de=c.year()-1,G=I+Do(de,h,m)):I>Do(c.year(),h,m)?(G=I-Do(c.year(),h,m),de=c.year()+1):(de=c.year(),G=I),{week:G,year:de}}function Do(c,h,m){var _=ma(c,h,m),I=ma(c+1,h,m);return(Ut(c)-_+I)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),Re("w",Ue,Jt),Re("ww",Ue,st),Re("W",Ue,Jt),Re("WW",Ue,st),yr(["w","ww","W","WW"],function(c,h,m,_){h[_.substr(0,1)]=qe(c)});function mb(c){return js(c,this._week.dow,this._week.doy).week}var gb={dow:0,doy:6};function yb(){return this._week.dow}function vb(){return this._week.doy}function bb(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function wb(c){var h=js(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),Re("d",Ue),Re("e",Ue),Re("E",Ue),Re("dd",function(c,h){return h.weekdaysMinRegex(c)}),Re("ddd",function(c,h){return h.weekdaysShortRegex(c)}),Re("dddd",function(c,h){return h.weekdaysRegex(c)}),yr(["dd","ddd","dddd"],function(c,h,m,_){var I=m._locale.weekdaysParse(c,_,m._strict);I!=null?h.d=I:v(m).invalidWeekday=c}),yr(["d","e","E"],function(c,h,m,_){h[_]=qe(c)});function Cb(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Sb(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Cc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var _b="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ch="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rb=vn,Tb=vn,kb=vn;function Eb(c,h){var m=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?Cc(m,this._week.dow):c?m[c.day()]:m}function Pb(c){return c===!0?Cc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function Db(c){return c===!0?Cc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function Ob(c,h,m){var _,I,G,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)G=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(G,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(G,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(G,"").toLocaleLowerCase();return m?h==="dddd"?(I=Vt.call(this._weekdaysParse,de),I!==-1?I:null):h==="ddd"?(I=Vt.call(this._shortWeekdaysParse,de),I!==-1?I:null):(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null):h==="dddd"?(I=Vt.call(this._weekdaysParse,de),I!==-1||(I=Vt.call(this._shortWeekdaysParse,de),I!==-1)?I:(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null)):h==="ddd"?(I=Vt.call(this._shortWeekdaysParse,de),I!==-1||(I=Vt.call(this._weekdaysParse,de),I!==-1)?I:(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null)):(I=Vt.call(this._minWeekdaysParse,de),I!==-1||(I=Vt.call(this._weekdaysParse,de),I!==-1)?I:(I=Vt.call(this._shortWeekdaysParse,de),I!==-1?I:null))}function Mb(c,h,m){var _,I,G;if(this._weekdaysParseExact)return Ob.call(this,c,h,m);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(I=b([2e3,1]).day(_),m&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(G="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[_]=new RegExp(G.replace(".",""),"i")),m&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(m&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(m&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!m&&this._weekdaysParse[_].test(c))return _}}function Ib(c){if(!this.isValid())return c!=null?this:NaN;var h=jn(this,"Day");return c!=null?(c=Cb(c,this.localeData()),this.add(c-h,"d")):h}function Nb(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function Ab(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=Sb(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function Fb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Rb),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function Lb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tb),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $b(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kb),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Sc(){function c(bn,Ao){return Ao.length-bn.length}var h=[],m=[],_=[],I=[],G,de,ke,je,et;for(G=0;G<7;G++)de=b([2e3,1]).day(G),ke=Vn(this.weekdaysMin(de,"")),je=Vn(this.weekdaysShort(de,"")),et=Vn(this.weekdays(de,"")),h.push(ke),m.push(je),_.push(et),I.push(ke),I.push(je),I.push(et);h.sort(c),m.sort(c),_.sort(c),I.sort(c),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function _c(){return this.hours()%12||12}function Vb(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,_c),j("k",["kk",2],0,Vb),j("hmm",0,0,function(){return""+_c.apply(this)+V(this.minutes(),2)}),j("hmmss",0,0,function(){return""+_c.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)});function Sh(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}Sh("a",!0),Sh("A",!1);function _h(c,h){return h._meridiemParse}Re("a",_h),Re("A",_h),Re("H",Ue,Wr),Re("h",Ue,Jt),Re("k",Ue,Jt),Re("HH",Ue,st),Re("hh",Ue,st),Re("kk",Ue,st),Re("hmm",tt),Re("hmmss",Mn),Re("Hmm",tt),Re("Hmmss",Mn),mt(["H","HH"],we),mt(["k","kk"],function(c,h,m){var _=qe(c);h[we]=_===24?0:_}),mt(["a","A"],function(c,h,m){m._isPm=m._locale.isPM(c),m._meridiem=c}),mt(["h","hh"],function(c,h,m){h[we]=qe(c),v(m).bigHour=!0}),mt("hmm",function(c,h,m){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_)),v(m).bigHour=!0}),mt("hmmss",function(c,h,m){var _=c.length-4,I=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_,2)),h[Ye]=qe(c.substr(I)),v(m).bigHour=!0}),mt("Hmm",function(c,h,m){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_))}),mt("Hmmss",function(c,h,m){var _=c.length-4,I=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_,2)),h[Ye]=qe(c.substr(I))});function jb(c){return(c+"").toLowerCase().charAt(0)==="p"}var Wb=/[ap]\.?m?\.?/i,Bb=en("Hours",!0);function Hb(c,h,m){return c>11?m?"pm":"PM":m?"am":"AM"}var xh={calendar:N,longDateFormat:ie,invalidDate:B,ordinal:Q,dayOfMonthOrdinalParse:fe,relativeTime:Ce,months:rb,monthsShort:mh,week:gb,weekdays:_b,weekdaysMin:xb,weekdaysShort:Ch,meridiemParse:Wb},Ft={},Ws={},Bs;function zb(c,h){var m,_=Math.min(c.length,h.length);for(m=0;m<_;m+=1)if(c[m]!==h[m])return m;return _}function Rh(c){return c&&c.toLowerCase().replace("_","-")}function Yb(c){for(var h=0,m,_,I,G;h<c.length;){for(G=Rh(c[h]).split("-"),m=G.length,_=Rh(c[h+1]),_=_?_.split("-"):null;m>0;){if(I=ga(G.slice(0,m).join("-")),I)return I;if(_&&_.length>=m&&zb(G,_)>=m-1)break;m--}h++}return Bs}function Ub(c){return!!(c&&c.match("^[^/\\\\]*$"))}function ga(c){var h=null,m;if(Ft[c]===void 0&&e&&e.exports&&Ub(c))try{h=Bs._abbr,m=VN,m("./locale/"+c),tr(h)}catch{Ft[c]=null}return Ft[c]}function tr(c,h){var m;return c&&(u(h)?m=Oo(c):m=xc(c,h),m?Bs=m:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),Bs._abbr}function xc(c,h){if(h!==null){var m,_=xh;if(h.abbr=c,Ft[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Ft[c]._config;else if(h.parentLocale!=null)if(Ft[h.parentLocale]!=null)_=Ft[h.parentLocale]._config;else if(m=ga(h.parentLocale),m!=null)_=m._config;else return Ws[h.parentLocale]||(Ws[h.parentLocale]=[]),Ws[h.parentLocale].push({name:c,config:h}),null;return Ft[c]=new H(Y(_,h)),Ws[c]&&Ws[c].forEach(function(I){xc(I.name,I.config)}),tr(c),Ft[c]}else return delete Ft[c],null}function qb(c,h){if(h!=null){var m,_,I=xh;Ft[c]!=null&&Ft[c].parentLocale!=null?Ft[c].set(Y(Ft[c]._config,h)):(_=ga(c),_!=null&&(I=_._config),h=Y(I,h),_==null&&(h.abbr=c),m=new H(h),m.parentLocale=Ft[c],Ft[c]=m),tr(c)}else Ft[c]!=null&&(Ft[c].parentLocale!=null?(Ft[c]=Ft[c].parentLocale,c===tr()&&tr(c)):Ft[c]!=null&&delete Ft[c]);return Ft[c]}function Oo(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return Bs;if(!i(c)){if(h=ga(c),h)return h;c=[c]}return Yb(c)}function Gb(){return ae(Ft)}function Rc(c){var h,m=c._a;return m&&v(c).overflow===-2&&(h=m[U]<0||m[U]>11?U:m[pe]<1||m[pe]>wc(m[rn],m[U])?pe:m[we]<0||m[we]>24||m[we]===24&&(m[Ne]!==0||m[Ye]!==0||m[Je]!==0)?we:m[Ne]<0||m[Ne]>59?Ne:m[Ye]<0||m[Ye]>59?Ye:m[Je]<0||m[Je]>999?Je:-1,v(c)._overflowDayOfYear&&(h<rn||h>pe)&&(h=pe),v(c)._overflowWeeks&&h===-1&&(h=Ze),v(c)._overflowWeekday&&h===-1&&(h=Ge),v(c).overflow=h),c}var Kb=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xb=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zb=/Z|[+-]\d\d(?::?\d\d)?/,ya=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Tc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qb=/^\/?Date\((-?\d+)/i,Jb=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ew={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Th(c){var h,m,_=c._i,I=Kb.exec(_)||Xb.exec(_),G,de,ke,je,et=ya.length,bn=Tc.length;if(I){for(v(c).iso=!0,h=0,m=et;h<m;h++)if(ya[h][1].exec(I[1])){de=ya[h][0],G=ya[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(I[3]){for(h=0,m=bn;h<m;h++)if(Tc[h][1].exec(I[3])){ke=(I[2]||" ")+Tc[h][0];break}if(ke==null){c._isValid=!1;return}}if(!G&&ke!=null){c._isValid=!1;return}if(I[4])if(Zb.exec(I[4]))je="Z";else{c._isValid=!1;return}c._f=de+(ke||"")+(je||""),Ec(c)}else c._isValid=!1}function tw(c,h,m,_,I,G){var de=[nw(c),mh.indexOf(h),parseInt(m,10),parseInt(_,10),parseInt(I,10)];return G&&de.push(parseInt(G,10)),de}function nw(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function ow(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rw(c,h,m){if(c){var _=Ch.indexOf(c),I=new Date(h[0],h[1],h[2]).getDay();if(_!==I)return v(m).weekdayMismatch=!0,m._isValid=!1,!1}return!0}function sw(c,h,m){if(c)return ew[c];if(h)return 0;var _=parseInt(m,10),I=_%100,G=(_-I)/100;return G*60+I}function kh(c){var h=Jb.exec(ow(c._i)),m;if(h){if(m=tw(h[4],h[3],h[2],h[5],h[6],h[7]),!rw(h[1],m,c))return;c._a=m,c._tzm=sw(h[8],h[9],h[10]),c._d=Vs.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function iw(c){var h=Qb.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(Th(c),c._isValid===!1)delete c._isValid;else return;if(kh(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function Yr(c,h,m){return c??h??m}function aw(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function kc(c){var h,m,_=[],I,G,de;if(!c._d){for(I=aw(c),c._w&&c._a[pe]==null&&c._a[U]==null&&lw(c),c._dayOfYear!=null&&(de=Yr(c._a[rn],I[rn]),(c._dayOfYear>Ut(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),m=Vs(de,0,c._dayOfYear),c._a[U]=m.getUTCMonth(),c._a[pe]=m.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=I[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[we]===24&&c._a[Ne]===0&&c._a[Ye]===0&&c._a[Je]===0&&(c._nextDay=!0,c._a[we]=0),c._d=(c._useUTC?Vs:pb).apply(null,_),G=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[we]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==G&&(v(c).weekdayMismatch=!0)}}function lw(c){var h,m,_,I,G,de,ke,je,et;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(G=1,de=4,m=Yr(h.GG,c._a[rn],js(Dt(),1,4).year),_=Yr(h.W,1),I=Yr(h.E,1),(I<1||I>7)&&(je=!0)):(G=c._locale._week.dow,de=c._locale._week.doy,et=js(Dt(),G,de),m=Yr(h.gg,c._a[rn],et.year),_=Yr(h.w,et.week),h.d!=null?(I=h.d,(I<0||I>6)&&(je=!0)):h.e!=null?(I=h.e+G,(h.e<0||h.e>6)&&(je=!0)):I=G),_<1||_>Do(m,G,de)?v(c)._overflowWeeks=!0:je!=null?v(c)._overflowWeekday=!0:(ke=wh(m,_,I,G,de),c._a[rn]=ke.year,c._dayOfYear=ke.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function Ec(c){if(c._f===o.ISO_8601){Th(c);return}if(c._f===o.RFC_2822){kh(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,m,_,I,G,de,ke=h.length,je=0,et,bn;for(I=ce(c._f,c._locale).match(W)||[],bn=I.length,m=0;m<bn;m++)G=I[m],_=(h.match(yc(G,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),je+=_.length),se[G]?(_?v(c).empty=!1:v(c).unusedTokens.push(G),vc(G,_,c)):c._strict&&!_&&v(c).unusedTokens.push(G);v(c).charsLeftOver=ke-je,h.length>0&&v(c).unusedInput.push(h),c._a[we]<=12&&v(c).bigHour===!0&&c._a[we]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[we]=cw(c._locale,c._a[we],c._meridiem),et=v(c).era,et!==null&&(c._a[rn]=c._locale.erasConvertYear(et,c._a[rn])),kc(c),Rc(c)}function cw(c,h,m){var _;return m==null?h:c.meridiemHour!=null?c.meridiemHour(h,m):(c.isPM!=null&&(_=c.isPM(m),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function dw(c){var h,m,_,I,G,de,ke=!1,je=c._f.length;if(je===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(I=0;I<je;I++)G=0,de=!1,h=D({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[I],Ec(h),P(h)&&(de=!0),G+=v(h).charsLeftOver,G+=v(h).unusedTokens.length*10,v(h).score=G,ke?G<_&&(_=G,m=h):(_==null||G<_||de)&&(_=G,m=h,de&&(ke=!0));w(c,m||h)}function uw(c){if(!c._d){var h=rt(c._i),m=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,m,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),kc(c)}}function hw(c){var h=new A(Rc(Eh(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function Eh(c){var h=c._i,m=c._f;return c._locale=c._locale||Oo(c._l),h===null||m===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new A(Rc(h)):(p(h)?c._d=h:i(m)?dw(c):m?Ec(c):fw(c),P(c)||(c._d=null),c))}function fw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?iw(c):i(h)?(c._a=y(h.slice(0),function(m){return parseInt(m,10)}),kc(c)):a(h)?uw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function Ph(c,h,m,_,I){var G={};return(h===!0||h===!1)&&(_=h,h=void 0),(m===!0||m===!1)&&(_=m,m=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),G._isAMomentObject=!0,G._useUTC=G._isUTC=I,G._l=m,G._i=c,G._f=h,G._strict=_,hw(G)}function Dt(c,h,m,_){return Ph(c,h,m,_,!1)}var pw=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Dt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),mw=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Dt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function Dh(c,h){var m,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Dt();for(m=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](m))&&(m=h[_]);return m}function gw(){var c=[].slice.call(arguments,0);return Dh("isBefore",c)}function yw(){var c=[].slice.call(arguments,0);return Dh("isAfter",c)}var vw=function(){return Date.now?Date.now():+new Date},Hs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function bw(c){var h,m=!1,_,I=Hs.length;for(h in c)if(l(c,h)&&!(Vt.call(Hs,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<I;++_)if(c[Hs[_]]){if(m)return!1;parseFloat(c[Hs[_]])!==qe(c[Hs[_]])&&(m=!0)}return!0}function ww(){return this._isValid}function Cw(){return to(NaN)}function va(c){var h=rt(c),m=h.year||0,_=h.quarter||0,I=h.month||0,G=h.week||h.isoWeek||0,de=h.day||0,ke=h.hour||0,je=h.minute||0,et=h.second||0,bn=h.millisecond||0;this._isValid=bw(h),this._milliseconds=+bn+et*1e3+je*6e4+ke*1e3*60*60,this._days=+de+G*7,this._months=+I+_*3+m*12,this._data={},this._locale=Oo(),this._bubble()}function ba(c){return c instanceof va}function Pc(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function Sw(c,h,m){var _=Math.min(c.length,h.length),I=Math.abs(c.length-h.length),G=0,de;for(de=0;de<_;de++)qe(c[de])!==qe(h[de])&&G++;return G+I}function Oh(c,h){j(c,0,0,function(){var m=this.utcOffset(),_="+";return m<0&&(m=-m,_="-"),_+V(~~(m/60),2)+h+V(~~m%60,2)})}Oh("Z",":"),Oh("ZZ",""),Re("Z",pt),Re("ZZ",pt),mt(["Z","ZZ"],function(c,h,m){m._useUTC=!0,m._tzm=Dc(pt,c)});var _w=/([\+\-]|\d\d)/gi;function Dc(c,h){var m=(h||"").match(c),_,I,G;return m===null?null:(_=m[m.length-1]||[],I=(_+"").match(_w)||["-",0,0],G=+(I[1]*60)+qe(I[2]),G===0?0:I[0]==="+"?G:-G)}function Oc(c,h){var m,_;return h._isUTC?(m=h.clone(),_=(F(c)||p(c)?c.valueOf():Dt(c).valueOf())-m.valueOf(),m._d.setTime(m._d.valueOf()+_),o.updateOffset(m,!1),m):Dt(c).local()}function Mc(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function xw(c,h,m){var _=this._offset||0,I;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=Dc(pt,c),c===null)return this}else Math.abs(c)<16&&!m&&(c=c*60);return!this._isUTC&&h&&(I=Mc(this)),this._offset=c,this._isUTC=!0,I!=null&&this.add(I,"m"),_!==c&&(!h||this._changeInProgress?Ah(this,to(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Mc(this)}function Rw(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function Tw(c){return this.utcOffset(0,c)}function kw(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(Mc(this),"m")),this}function Ew(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=Dc(uo,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function Pw(c){return this.isValid()?(c=c?Dt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function Dw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ow(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return D(c,this),c=Eh(c),c._a?(h=c._isUTC?b(c._a):Dt(c._a),this._isDSTShifted=this.isValid()&&Sw(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mw(){return this.isValid()?!this._isUTC:!1}function Iw(){return this.isValid()?this._isUTC:!1}function Mh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Nw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Aw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function to(c,h){var m=c,_=null,I,G,de;return ba(c)?m={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(m={},h?m[h]=+c:m.milliseconds=+c):(_=Nw.exec(c))?(I=_[1]==="-"?-1:1,m={y:0,d:qe(_[pe])*I,h:qe(_[we])*I,m:qe(_[Ne])*I,s:qe(_[Ye])*I,ms:qe(Pc(_[Je]*1e3))*I}):(_=Aw.exec(c))?(I=_[1]==="-"?-1:1,m={y:vr(_[2],I),M:vr(_[3],I),w:vr(_[4],I),d:vr(_[5],I),h:vr(_[6],I),m:vr(_[7],I),s:vr(_[8],I)}):m==null?m={}:typeof m=="object"&&("from"in m||"to"in m)&&(de=Fw(Dt(m.from),Dt(m.to)),m={},m.ms=de.milliseconds,m.M=de.months),G=new va(m),ba(c)&&l(c,"_locale")&&(G._locale=c._locale),ba(c)&&l(c,"_isValid")&&(G._isValid=c._isValid),G}to.fn=va.prototype,to.invalid=Cw;function vr(c,h){var m=c&&parseFloat(c.replace(",","."));return(isNaN(m)?0:m)*h}function Ih(c,h){var m={};return m.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(m.months,"M").isAfter(h)&&--m.months,m.milliseconds=+h-+c.clone().add(m.months,"M"),m}function Fw(c,h){var m;return c.isValid()&&h.isValid()?(h=Oc(h,c),c.isBefore(h)?m=Ih(c,h):(m=Ih(h,c),m.milliseconds=-m.milliseconds,m.months=-m.months),m):{milliseconds:0,months:0}}function Nh(c,h){return function(m,_){var I,G;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),G=m,m=_,_=G),I=to(m,_),Ah(this,I,c),this}}function Ah(c,h,m,_){var I=h._milliseconds,G=Pc(h._days),de=Pc(h._months);c.isValid()&&(_=_??!0,de&&yh(c,jn(c,"Month")+de*m),G&&ho(c,"Date",jn(c,"Date")+G*m),I&&c._d.setTime(c._d.valueOf()+I*m),_&&o.updateOffset(c,G||de))}var Lw=Nh(1,"add"),$w=Nh(-1,"subtract");function Fh(c){return typeof c=="string"||c instanceof String}function Vw(c){return F(c)||p(c)||Fh(c)||f(c)||Ww(c)||jw(c)||c===null||c===void 0}function jw(c){var h=a(c)&&!d(c),m=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,G,de=_.length;for(I=0;I<de;I+=1)G=_[I],m=m||l(c,G);return h&&m}function Ww(c){var h=i(c),m=!1;return h&&(m=c.filter(function(_){return!f(_)&&Fh(c)}).length===0),h&&m}function Bw(c){var h=a(c)&&!d(c),m=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],I,G;for(I=0;I<_.length;I+=1)G=_[I],m=m||l(c,G);return h&&m}function Hw(c,h){var m=c.diff(h,"days",!0);return m<-6?"sameElse":m<-1?"lastWeek":m<0?"lastDay":m<1?"sameDay":m<2?"nextDay":m<7?"nextWeek":"sameElse"}function zw(c,h){arguments.length===1&&(arguments[0]?Vw(arguments[0])?(c=arguments[0],h=void 0):Bw(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var m=c||Dt(),_=Oc(m,this).startOf("day"),I=o.calendarFormat(this,_)||"sameElse",G=h&&(X(h[I])?h[I].call(this,m):h[I]);return this.format(G||this.localeData().calendar(I,this,Dt(m)))}function Yw(){return new A(this)}function Uw(c,h){var m=F(c)?c:Dt(c);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()>m.valueOf():m.valueOf()<this.clone().startOf(h).valueOf()):!1}function qw(c,h){var m=F(c)?c:Dt(c);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()<m.valueOf():this.clone().endOf(h).valueOf()<m.valueOf()):!1}function Gw(c,h,m,_){var I=F(c)?c:Dt(c),G=F(h)?h:Dt(h);return this.isValid()&&I.isValid()&&G.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(I,m):!this.isBefore(I,m))&&(_[1]===")"?this.isBefore(G,m):!this.isAfter(G,m))):!1}function Kw(c,h){var m=F(c)?c:Dt(c),_;return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()===m.valueOf():(_=m.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function Xw(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function Zw(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function Qw(c,h,m){var _,I,G;if(!this.isValid())return NaN;if(_=Oc(c,this),!_.isValid())return NaN;switch(I=(_.utcOffset()-this.utcOffset())*6e4,h=Ae(h),h){case"year":G=wa(this,_)/12;break;case"month":G=wa(this,_);break;case"quarter":G=wa(this,_)/3;break;case"second":G=(this-_)/1e3;break;case"minute":G=(this-_)/6e4;break;case"hour":G=(this-_)/36e5;break;case"day":G=(this-_-I)/864e5;break;case"week":G=(this-_-I)/6048e5;break;default:G=this-_}return m?G:Sn(G)}function wa(c,h){if(c.date()<h.date())return-wa(h,c);var m=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(m,"months"),I,G;return h-_<0?(I=c.clone().add(m-1,"months"),G=(h-_)/(_-I)):(I=c.clone().add(m+1,"months"),G=(h-_)/(I-_)),-(m+G)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Jw(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eC(c){if(!this.isValid())return null;var h=c!==!0,m=h?this.clone().utc():this;return m.year()<0||m.year()>9999?te(m,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):X(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(m,"Z")):te(m,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",m,_,I,G;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),m="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",G=h+'[")]',this.format(m+_+I+G)}function nC(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function oC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?to({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function rC(c){return this.from(Dt(),c)}function sC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?to({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function iC(c){return this.to(Dt(),c)}function Lh(c){var h;return c===void 0?this._locale._abbr:(h=Oo(c),h!=null&&(this._locale=h),this)}var $h=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Vh(){return this._locale}var Ca=1e3,Ur=60*Ca,Sa=60*Ur,jh=(365*400+97)*24*Sa;function qr(c,h){return(c%h+h)%h}function Wh(c,h,m){return c<100&&c>=0?new Date(c+400,h,m)-jh:new Date(c,h,m).valueOf()}function Bh(c,h,m){return c<100&&c>=0?Date.UTC(c+400,h,m)-jh:Date.UTC(c,h,m)}function aC(c){var h,m;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?Bh:Wh,c){case"year":h=m(this.year(),0,1);break;case"quarter":h=m(this.year(),this.month()-this.month()%3,1);break;case"month":h=m(this.year(),this.month(),1);break;case"week":h=m(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=m(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=m(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=qr(h+(this._isUTC?0:this.utcOffset()*Ur),Sa);break;case"minute":h=this._d.valueOf(),h-=qr(h,Ur);break;case"second":h=this._d.valueOf(),h-=qr(h,Ca);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function lC(c){var h,m;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?Bh:Wh,c){case"year":h=m(this.year()+1,0,1)-1;break;case"quarter":h=m(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=m(this.year(),this.month()+1,1)-1;break;case"week":h=m(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=m(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=m(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=Sa-qr(h+(this._isUTC?0:this.utcOffset()*Ur),Sa)-1;break;case"minute":h=this._d.valueOf(),h+=Ur-qr(h,Ur)-1;break;case"second":h=this._d.valueOf(),h+=Ca-qr(h,Ca)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function cC(){return this._d.valueOf()-(this._offset||0)*6e4}function dC(){return Math.floor(this.valueOf()/1e3)}function uC(){return new Date(this.valueOf())}function hC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function fC(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function pC(){return this.isValid()?this.toISOString():null}function mC(){return P(this)}function gC(){return w({},v(this))}function yC(){return v(this).overflow}function vC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),Re("N",Ic),Re("NN",Ic),Re("NNN",Ic),Re("NNNN",PC),Re("NNNNN",DC),mt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,m,_){var I=m._locale.erasParse(c,_,m._strict);I?v(m).era=I:v(m).invalidEra=c}),Re("y",vt),Re("yy",vt),Re("yyy",vt),Re("yyyy",vt),Re("yo",OC),mt(["y","yy","yyy","yyyy"],rn),mt(["yo"],function(c,h,m,_){var I;m._locale._eraYearOrdinalRegex&&(I=c.match(m._locale._eraYearOrdinalRegex)),m._locale.eraYearOrdinalParse?h[rn]=m._locale.eraYearOrdinalParse(c,I):h[rn]=parseInt(c,10)});function bC(c,h){var m,_,I,G=this._eras||Oo("en")._eras;for(m=0,_=G.length;m<_;++m){switch(typeof G[m].since){case"string":I=o(G[m].since).startOf("day"),G[m].since=I.valueOf();break}switch(typeof G[m].until){case"undefined":G[m].until=1/0;break;case"string":I=o(G[m].until).startOf("day").valueOf(),G[m].until=I.valueOf();break}}return G}function wC(c,h,m){var _,I,G=this.eras(),de,ke,je;for(c=c.toUpperCase(),_=0,I=G.length;_<I;++_)if(de=G[_].name.toUpperCase(),ke=G[_].abbr.toUpperCase(),je=G[_].narrow.toUpperCase(),m)switch(h){case"N":case"NN":case"NNN":if(ke===c)return G[_];break;case"NNNN":if(de===c)return G[_];break;case"NNNNN":if(je===c)return G[_];break}else if([de,ke,je].indexOf(c)>=0)return G[_]}function CC(c,h){var m=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*m}function SC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].name;return""}function _C(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].narrow;return""}function xC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].abbr;return""}function RC(){var c,h,m,_,I=this.localeData().eras();for(c=0,h=I.length;c<h;++c)if(m=I[c].since<=I[c].until?1:-1,_=this.clone().startOf("day").valueOf(),I[c].since<=_&&_<=I[c].until||I[c].until<=_&&_<=I[c].since)return(this.year()-o(I[c].since).year())*m+I[c].offset;return this.year()}function TC(c){return l(this,"_erasNameRegex")||Nc.call(this),c?this._erasNameRegex:this._erasRegex}function kC(c){return l(this,"_erasAbbrRegex")||Nc.call(this),c?this._erasAbbrRegex:this._erasRegex}function EC(c){return l(this,"_erasNarrowRegex")||Nc.call(this),c?this._erasNarrowRegex:this._erasRegex}function Ic(c,h){return h.erasAbbrRegex(c)}function PC(c,h){return h.erasNameRegex(c)}function DC(c,h){return h.erasNarrowRegex(c)}function OC(c,h){return h._eraYearOrdinalRegex||vt}function Nc(){var c=[],h=[],m=[],_=[],I,G,de,ke,je,et=this.eras();for(I=0,G=et.length;I<G;++I)de=Vn(et[I].name),ke=Vn(et[I].abbr),je=Vn(et[I].narrow),h.push(de),c.push(ke),m.push(je),_.push(de),_.push(ke),_.push(je);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+m.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function _a(c,h){j(0,[c,c.length],0,h)}_a("gggg","weekYear"),_a("ggggg","weekYear"),_a("GGGG","isoWeekYear"),_a("GGGGG","isoWeekYear"),Re("G",ln),Re("g",ln),Re("GG",Ue,st),Re("gg",Ue,st),Re("GGGG",Me,Xt),Re("gggg",Me,Xt),Re("GGGGG",Be,on),Re("ggggg",Be,on),yr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,m,_){h[_.substr(0,2)]=qe(c)}),yr(["gg","GG"],function(c,h,m,_){h[_]=o.parseTwoDigitYear(c)});function MC(c){return Hh.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function IC(c){return Hh.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function NC(){return Do(this.year(),1,4)}function AC(){return Do(this.isoWeekYear(),1,4)}function FC(){var c=this.localeData()._week;return Do(this.year(),c.dow,c.doy)}function LC(){var c=this.localeData()._week;return Do(this.weekYear(),c.dow,c.doy)}function Hh(c,h,m,_,I){var G;return c==null?js(this,_,I).year:(G=Do(c,_,I),h>G&&(h=G),$C.call(this,c,h,m,_,I))}function $C(c,h,m,_,I){var G=wh(c,h,m,_,I),de=Vs(G.year,0,G.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),Re("Q",Kt),mt("Q",function(c,h){h[U]=(qe(c)-1)*3});function VC(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),Re("D",Ue,Jt),Re("DD",Ue,st),Re("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],pe),mt("Do",function(c,h){h[pe]=qe(c.match(Ue)[0])});var zh=en("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),Re("DDD",hn),Re("DDDD",Yt),mt(["DDD","DDDD"],function(c,h,m){m._dayOfYear=qe(c)});function jC(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),Re("m",Ue,Wr),Re("mm",Ue,st),mt(["m","mm"],Ne);var WC=en("Minutes",!1);j("s",["ss",2],0,"second"),Re("s",Ue,Wr),Re("ss",Ue,st),mt(["s","ss"],Ye);var BC=en("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Re("S",hn,Kt),Re("SS",hn,st),Re("SSS",hn,Yt);var nr,Yh;for(nr="SSSS";nr.length<=9;nr+="S")Re(nr,vt);function HC(c,h){h[Je]=qe(("0."+c)*1e3)}for(nr="S";nr.length<=9;nr+="S")mt(nr,HC);Yh=en("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function zC(){return this._isUTC?"UTC":""}function YC(){return this._isUTC?"Coordinated Universal Time":""}var ge=A.prototype;ge.add=Lw,ge.calendar=zw,ge.clone=Yw,ge.diff=Qw,ge.endOf=lC,ge.format=nC,ge.from=oC,ge.fromNow=rC,ge.to=sC,ge.toNow=iC,ge.get=fn,ge.invalidAt=yC,ge.isAfter=Uw,ge.isBefore=qw,ge.isBetween=Gw,ge.isSame=Kw,ge.isSameOrAfter=Xw,ge.isSameOrBefore=Zw,ge.isValid=mC,ge.lang=$h,ge.locale=Lh,ge.localeData=Vh,ge.max=mw,ge.min=pw,ge.parsingFlags=gC,ge.set=$s,ge.startOf=aC,ge.subtract=$w,ge.toArray=hC,ge.toObject=fC,ge.toDate=uC,ge.toISOString=eC,ge.inspect=tC,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=pC,ge.toString=Jw,ge.unix=dC,ge.valueOf=cC,ge.creationData=vC,ge.eraName=SC,ge.eraNarrow=_C,ge.eraAbbr=xC,ge.eraYear=RC,ge.year=At,ge.isLeapYear=Bt,ge.weekYear=MC,ge.isoWeekYear=IC,ge.quarter=ge.quarters=VC,ge.month=vh,ge.daysInMonth=ub,ge.week=ge.weeks=bb,ge.isoWeek=ge.isoWeeks=wb,ge.weeksInYear=FC,ge.weeksInWeekYear=LC,ge.isoWeeksInYear=NC,ge.isoWeeksInISOWeekYear=AC,ge.date=zh,ge.day=ge.days=Ib,ge.weekday=Nb,ge.isoWeekday=Ab,ge.dayOfYear=jC,ge.hour=ge.hours=Bb,ge.minute=ge.minutes=WC,ge.second=ge.seconds=BC,ge.millisecond=ge.milliseconds=Yh,ge.utcOffset=xw,ge.utc=Tw,ge.local=kw,ge.parseZone=Ew,ge.hasAlignedHourOffset=Pw,ge.isDST=Dw,ge.isLocal=Mw,ge.isUtcOffset=Iw,ge.isUtc=Mh,ge.isUTC=Mh,ge.zoneAbbr=zC,ge.zoneName=YC,ge.dates=R("dates accessor is deprecated. Use date instead.",zh),ge.months=R("months accessor is deprecated. Use month instead",vh),ge.years=R("years accessor is deprecated. Use year instead",At),ge.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rw),ge.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ow);function UC(c){return Dt(c*1e3)}function qC(){return Dt.apply(null,arguments).parseZone()}function Uh(c){return c}var lt=H.prototype;lt.calendar=M,lt.longDateFormat=he,lt.invalidDate=re,lt.ordinal=me,lt.preparse=Uh,lt.postformat=Uh,lt.relativeTime=ve,lt.pastFuture=xe,lt.set=q,lt.eras=bC,lt.erasParse=wC,lt.erasConvertYear=CC,lt.erasAbbrRegex=kC,lt.erasNameRegex=TC,lt.erasNarrowRegex=EC,lt.months=ab,lt.monthsShort=lb,lt.monthsParse=db,lt.monthsRegex=fb,lt.monthsShortRegex=hb,lt.week=mb,lt.firstDayOfYear=vb,lt.firstDayOfWeek=yb,lt.weekdays=Eb,lt.weekdaysMin=Db,lt.weekdaysShort=Pb,lt.weekdaysParse=Mb,lt.weekdaysRegex=Fb,lt.weekdaysShortRegex=Lb,lt.weekdaysMinRegex=$b,lt.isPM=jb,lt.meridiem=Hb;function xa(c,h,m,_){var I=Oo(),G=b().set(_,h);return I[m](G,c)}function qh(c,h,m){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return xa(c,h,m,"month");var _,I=[];for(_=0;_<12;_++)I[_]=xa(c,_,m,"month");return I}function Ac(c,h,m,_){typeof c=="boolean"?(f(h)&&(m=h,h=void 0),h=h||""):(h=c,m=h,c=!1,f(h)&&(m=h,h=void 0),h=h||"");var I=Oo(),G=c?I._week.dow:0,de,ke=[];if(m!=null)return xa(h,(m+G)%7,_,"day");for(de=0;de<7;de++)ke[de]=xa(h,(de+G)%7,_,"day");return ke}function GC(c,h){return qh(c,h,"months")}function KC(c,h){return qh(c,h,"monthsShort")}function XC(c,h,m){return Ac(c,h,m,"weekdays")}function ZC(c,h,m){return Ac(c,h,m,"weekdaysShort")}function QC(c,h,m){return Ac(c,h,m,"weekdaysMin")}tr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,m=qe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+m}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",tr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Oo);var Mo=Math.abs;function JC(){var c=this._data;return this._milliseconds=Mo(this._milliseconds),this._days=Mo(this._days),this._months=Mo(this._months),c.milliseconds=Mo(c.milliseconds),c.seconds=Mo(c.seconds),c.minutes=Mo(c.minutes),c.hours=Mo(c.hours),c.months=Mo(c.months),c.years=Mo(c.years),this}function Gh(c,h,m,_){var I=to(h,m);return c._milliseconds+=_*I._milliseconds,c._days+=_*I._days,c._months+=_*I._months,c._bubble()}function eS(c,h){return Gh(this,c,h,1)}function tS(c,h){return Gh(this,c,h,-1)}function Kh(c){return c<0?Math.floor(c):Math.ceil(c)}function nS(){var c=this._milliseconds,h=this._days,m=this._months,_=this._data,I,G,de,ke,je;return c>=0&&h>=0&&m>=0||c<=0&&h<=0&&m<=0||(c+=Kh(Fc(m)+h)*864e5,h=0,m=0),_.milliseconds=c%1e3,I=Sn(c/1e3),_.seconds=I%60,G=Sn(I/60),_.minutes=G%60,de=Sn(G/60),_.hours=de%24,h+=Sn(de/24),je=Sn(Xh(h)),m+=je,h-=Kh(Fc(je)),ke=Sn(m/12),m%=12,_.days=h,_.months=m,_.years=ke,this}function Xh(c){return c*4800/146097}function Fc(c){return c*146097/4800}function oS(c){if(!this.isValid())return NaN;var h,m,_=this._milliseconds;if(c=Ae(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,m=this._months+Xh(h),c){case"month":return m;case"quarter":return m/3;case"year":return m/12}else switch(h=this._days+Math.round(Fc(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function Io(c){return function(){return this.as(c)}}var Zh=Io("ms"),rS=Io("s"),sS=Io("m"),iS=Io("h"),aS=Io("d"),lS=Io("w"),cS=Io("M"),dS=Io("Q"),uS=Io("y"),hS=Zh;function fS(){return to(this)}function pS(c){return c=Ae(c),this.isValid()?this[c+"s"]():NaN}function br(c){return function(){return this.isValid()?this._data[c]:NaN}}var mS=br("milliseconds"),gS=br("seconds"),yS=br("minutes"),vS=br("hours"),bS=br("days"),wS=br("months"),CS=br("years");function SS(){return Sn(this.days()/7)}var No=Math.round,Gr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _S(c,h,m,_,I){return I.relativeTime(h||1,!!m,c,_)}function xS(c,h,m,_){var I=to(c).abs(),G=No(I.as("s")),de=No(I.as("m")),ke=No(I.as("h")),je=No(I.as("d")),et=No(I.as("M")),bn=No(I.as("w")),Ao=No(I.as("y")),or=G<=m.ss&&["s",G]||G<m.s&&["ss",G]||de<=1&&["m"]||de<m.m&&["mm",de]||ke<=1&&["h"]||ke<m.h&&["hh",ke]||je<=1&&["d"]||je<m.d&&["dd",je];return m.w!=null&&(or=or||bn<=1&&["w"]||bn<m.w&&["ww",bn]),or=or||et<=1&&["M"]||et<m.M&&["MM",et]||Ao<=1&&["y"]||["yy",Ao],or[2]=h,or[3]=+c>0,or[4]=_,_S.apply(null,or)}function RS(c){return c===void 0?No:typeof c=="function"?(No=c,!0):!1}function TS(c,h){return Gr[c]===void 0?!1:h===void 0?Gr[c]:(Gr[c]=h,c==="s"&&(Gr.ss=h-1),!0)}function kS(c,h){if(!this.isValid())return this.localeData().invalidDate();var m=!1,_=Gr,I,G;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(m=c),typeof h=="object"&&(_=Object.assign({},Gr,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),I=this.localeData(),G=xS(this,!m,_,I),m&&(G=I.pastFuture(+this,G)),I.postformat(G)}var Lc=Math.abs;function Kr(c){return(c>0)-(c<0)||+c}function Ra(){if(!this.isValid())return this.localeData().invalidDate();var c=Lc(this._milliseconds)/1e3,h=Lc(this._days),m=Lc(this._months),_,I,G,de,ke=this.asSeconds(),je,et,bn,Ao;return ke?(_=Sn(c/60),I=Sn(_/60),c%=60,_%=60,G=Sn(m/12),m%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",je=ke<0?"-":"",et=Kr(this._months)!==Kr(ke)?"-":"",bn=Kr(this._days)!==Kr(ke)?"-":"",Ao=Kr(this._milliseconds)!==Kr(ke)?"-":"",je+"P"+(G?et+G+"Y":"")+(m?et+m+"M":"")+(h?bn+h+"D":"")+(I||_||c?"T":"")+(I?Ao+I+"H":"")+(_?Ao+_+"M":"")+(c?Ao+de+"S":"")):"P0D"}var nt=va.prototype;nt.isValid=ww,nt.abs=JC,nt.add=eS,nt.subtract=tS,nt.as=oS,nt.asMilliseconds=Zh,nt.asSeconds=rS,nt.asMinutes=sS,nt.asHours=iS,nt.asDays=aS,nt.asWeeks=lS,nt.asMonths=cS,nt.asQuarters=dS,nt.asYears=uS,nt.valueOf=hS,nt._bubble=nS,nt.clone=fS,nt.get=pS,nt.milliseconds=mS,nt.seconds=gS,nt.minutes=yS,nt.hours=vS,nt.days=bS,nt.weeks=SS,nt.months=wS,nt.years=CS,nt.humanize=kS,nt.toISOString=Ra,nt.toString=Ra,nt.toJSON=Ra,nt.locale=Lh,nt.localeData=Vh,nt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ra),nt.lang=$h,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Re("x",ln),Re("X",Qt),mt("X",function(c,h,m){m._d=new Date(parseFloat(c)*1e3)}),mt("x",function(c,h,m){m._d=new Date(qe(c))});//! moment.js
|
|
261
|
+
`+new Error().stack),m=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(z(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function X(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,m;for(m in c)l(c,m)&&(h=c[m],X(h)?this[m]=h:this["_"+m]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var m=w({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(m[_]={},w(m[_],c[_]),w(m[_],h[_])):h[_]!=null?m[_]=h[_]:delete m[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(m[_]=w({},m[_]));return m}function H(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,m=[];for(h in c)l(c,h)&&m.push(h);return m};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,m){var _=this._calendar[c]||this._calendar.sameElse;return X(_)?_.call(h,m):_}function V(c,h,m){var _=""+Math.abs(c),I=h-_.length,G=c>=0;return(G?m?"+":"":"-")+Math.pow(10,Math.max(0,I)).toString().substr(1)+_}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,m,_){var I=_;typeof _=="string"&&(I=function(){return this[_]()}),c&&(se[c]=I),h&&(se[h[0]]=function(){return V(I.apply(this,arguments),h[1],h[2])}),m&&(se[m]=function(){return this.localeData().ordinal(I.apply(this,arguments),c)})}function J(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function ee(c){var h=c.match(W),m,_;for(m=0,_=h.length;m<_;m++)se[h[m]]?h[m]=se[h[m]]:h[m]=J(h[m]);return function(I){var G="",de;for(de=0;de<_;de++)G+=X(h[de])?h[de].call(I,c):h[de];return G}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||ee(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var m=5;function _(I){return h.longDateFormat(I)||I}for(ne.lastIndex=0;m>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,m-=1;return c}var ie={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function he(c){var h=this._longDateFormat[c],m=this._longDateFormat[c.toUpperCase()];return h||!m?h:(this._longDateFormat[c]=m.match(W).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var B="Invalid date";function re(){return this._invalidDate}var Q="%d",fe=/\d{1,2}/;function me(c){return this._ordinal.replace("%d",c)}var Ce={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ve(c,h,m,_){var I=this._relativeTime[m];return X(I)?I(c,h,m,_):I.replace(/%d/i,c)}function xe(c,h){var m=this._relativeTime[c>0?"future":"past"];return X(m)?m(h):m.replace(/%s/i,h)}var $e={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ae(c){return typeof c=="string"?$e[c]||$e[c.toLowerCase()]:void 0}function rt(c){var h={},m,_;for(_ in c)l(c,_)&&(m=Ae(_),m&&(h[m]=c[_]));return h}var Pe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ft(c){var h=[],m;for(m in c)l(c,m)&&h.push({unit:m,priority:Pe[m]});return h.sort(function(_,I){return _.priority-I.priority}),h}var Kt=/\d/,st=/\d\d/,Yt=/\d{3}/,Xt=/\d{4}/,on=/[+-]?\d{6}/,Ue=/\d\d?/,tt=/\d\d\d\d?/,Mn=/\d\d\d\d\d\d?/,hn=/\d{1,3}/,Me=/\d{1,4}/,He=/[+-]?\d{1,6}/,vt=/\d+/,ln=/[+-]?\d+/,uo=/Z|[+-]\d\d:?\d\d/gi,pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Qt=/[+-]?\d+(\.\d{1,3})?/,vn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Jt=/^[1-9]\d?/,Wr=/^([1-9]\d|\d)/,Br;Br={};function Re(c,h,m){Br[c]=X(h)?h:function(_,I){return _&&m?m:h}}function yc(c,h){return l(Br,c)?Br[c](h._strict,h._locale):new RegExp(pa(c))}function pa(c){return Vn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,m,_,I,G){return m||_||I||G}))}function Vn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Sn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function qe(c){var h=+c,m=0;return h!==0&&isFinite(h)&&(m=Sn(h)),m}var Hr={};function mt(c,h){var m,_=h,I;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(G,de){de[h]=qe(G)}),I=c.length,m=0;m<I;m++)Hr[c[m]]=_}function yr(c,h){mt(c,function(m,_,I,G){I._w=I._w||{},h(m,I._w,I,G)})}function vc(c,h,m){h!=null&&l(Hr,c)&&Hr[c](h,m._a,m,c)}function zr(c){return c%4===0&&c%100!==0||c%400===0}var rn=0,U=1,pe=2,we=3,Ne=4,Ye=5,Je=6,Ze=7,Ge=8;j("Y",0,0,function(){var c=this.year();return c<=9999?V(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),Re("Y",ln),Re("YY",Ue,st),Re("YYYY",Me,Xt),Re("YYYYY",He,on),Re("YYYYYY",He,on),mt(["YYYYY","YYYYYY"],rn),mt("YYYY",function(c,h){h[rn]=c.length===2?o.parseTwoDigitYear(c):qe(c)}),mt("YY",function(c,h){h[rn]=o.parseTwoDigitYear(c)}),mt("Y",function(c,h){h[rn]=parseInt(c,10)});function Ut(c){return zr(c)?366:365}o.parseTwoDigitYear=function(c){return qe(c)+(qe(c)>68?1900:2e3)};var At=en("FullYear",!0);function Bt(){return zr(this.year())}function en(c,h){return function(m){return m!=null?(ho(this,c,m),o.updateOffset(this,h),this):jn(this,c)}}function jn(c,h){if(!c.isValid())return NaN;var m=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?m.getUTCMilliseconds():m.getMilliseconds();case"Seconds":return _?m.getUTCSeconds():m.getSeconds();case"Minutes":return _?m.getUTCMinutes():m.getMinutes();case"Hours":return _?m.getUTCHours():m.getHours();case"Date":return _?m.getUTCDate():m.getDate();case"Day":return _?m.getUTCDay():m.getDay();case"Month":return _?m.getUTCMonth():m.getMonth();case"FullYear":return _?m.getUTCFullYear():m.getFullYear();default:return NaN}}function ho(c,h,m){var _,I,G,de,ke;if(!(!c.isValid()||isNaN(m))){switch(_=c._d,I=c._isUTC,h){case"Milliseconds":return void(I?_.setUTCMilliseconds(m):_.setMilliseconds(m));case"Seconds":return void(I?_.setUTCSeconds(m):_.setSeconds(m));case"Minutes":return void(I?_.setUTCMinutes(m):_.setMinutes(m));case"Hours":return void(I?_.setUTCHours(m):_.setHours(m));case"Date":return void(I?_.setUTCDate(m):_.setDate(m));case"FullYear":break;default:return}G=m,de=c.month(),ke=c.date(),ke=ke===29&&de===1&&!zr(G)?28:ke,I?_.setUTCFullYear(G,de,ke):_.setFullYear(G,de,ke)}}function fn(c){return c=Ae(c),X(this[c])?this[c]():this}function $s(c,h){if(typeof c=="object"){c=rt(c);var m=ft(c),_,I=m.length;for(_=0;_<I;_++)this[m[_].unit](c[m[_].unit])}else if(c=Ae(c),X(this[c]))return this[c](h);return this}function bc(c,h){return(c%h+h)%h}var Vt;Array.prototype.indexOf?Vt=Array.prototype.indexOf:Vt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function wc(c,h){if(isNaN(c)||isNaN(h))return NaN;var m=bc(h,12);return c+=(h-m)/12,m===1?zr(c)?29:28:31-m%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),Re("M",Ue,Jt),Re("MM",Ue,st),Re("MMM",function(c,h){return h.monthsShortRegex(c)}),Re("MMMM",function(c,h){return h.monthsRegex(c)}),mt(["M","MM"],function(c,h){h[U]=qe(c)-1}),mt(["MMM","MMMM"],function(c,h,m,_){var I=m._locale.monthsParse(c,_,m._strict);I!=null?h[U]=I:v(m).invalidMonth=c});var rb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),mh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sb=vn,ib=vn;function ab(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||gh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function lb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[gh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function cb(c,h,m){var _,I,G,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)G=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(G,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(G,"").toLocaleLowerCase();return m?h==="MMM"?(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:null):(I=Vt.call(this._longMonthsParse,de),I!==-1?I:null):h==="MMM"?(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:(I=Vt.call(this._longMonthsParse,de),I!==-1?I:null)):(I=Vt.call(this._longMonthsParse,de),I!==-1?I:(I=Vt.call(this._shortMonthsParse,de),I!==-1?I:null))}function db(c,h,m){var _,I,G;if(this._monthsParseExact)return cb.call(this,c,h,m);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(I=b([2e3,_]),m&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(I,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(I,"").replace(".","")+"$","i")),!m&&!this._monthsParse[_]&&(G="^"+this.months(I,"")+"|^"+this.monthsShort(I,""),this._monthsParse[_]=new RegExp(G.replace(".",""),"i")),m&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(m&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!m&&this._monthsParse[_].test(c))return _}}function yh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=qe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var m=h,_=c.date();return _=_<29?_:Math.min(_,wc(c.year(),m)),c._isUTC?c._d.setUTCMonth(m,_):c._d.setMonth(m,_),c}function vh(c){return c!=null?(yh(this,c),o.updateOffset(this,!0),this):jn(this,"Month")}function ub(){return wc(this.year(),this.month())}function hb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||bh.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=sb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function fb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||bh.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ib),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function bh(){function c(je,et){return et.length-je.length}var h=[],m=[],_=[],I,G,de,ke;for(I=0;I<12;I++)G=b([2e3,I]),de=Vn(this.monthsShort(G,"")),ke=Vn(this.months(G,"")),h.push(de),m.push(ke),_.push(ke),_.push(de);h.sort(c),m.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function pb(c,h,m,_,I,G,de){var ke;return c<100&&c>=0?(ke=new Date(c+400,h,m,_,I,G,de),isFinite(ke.getFullYear())&&ke.setFullYear(c)):ke=new Date(c,h,m,_,I,G,de),ke}function Vs(c){var h,m;return c<100&&c>=0?(m=Array.prototype.slice.call(arguments),m[0]=c+400,h=new Date(Date.UTC.apply(null,m)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function ma(c,h,m){var _=7+h-m,I=(7+Vs(c,0,_).getUTCDay()-h)%7;return-I+_-1}function wh(c,h,m,_,I){var G=(7+m-_)%7,de=ma(c,_,I),ke=1+7*(h-1)+G+de,je,et;return ke<=0?(je=c-1,et=Ut(je)+ke):ke>Ut(c)?(je=c+1,et=ke-Ut(c)):(je=c,et=ke),{year:je,dayOfYear:et}}function js(c,h,m){var _=ma(c.year(),h,m),I=Math.floor((c.dayOfYear()-_-1)/7)+1,G,de;return I<1?(de=c.year()-1,G=I+Do(de,h,m)):I>Do(c.year(),h,m)?(G=I-Do(c.year(),h,m),de=c.year()+1):(de=c.year(),G=I),{week:G,year:de}}function Do(c,h,m){var _=ma(c,h,m),I=ma(c+1,h,m);return(Ut(c)-_+I)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),Re("w",Ue,Jt),Re("ww",Ue,st),Re("W",Ue,Jt),Re("WW",Ue,st),yr(["w","ww","W","WW"],function(c,h,m,_){h[_.substr(0,1)]=qe(c)});function mb(c){return js(c,this._week.dow,this._week.doy).week}var gb={dow:0,doy:6};function yb(){return this._week.dow}function vb(){return this._week.doy}function bb(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function wb(c){var h=js(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),Re("d",Ue),Re("e",Ue),Re("E",Ue),Re("dd",function(c,h){return h.weekdaysMinRegex(c)}),Re("ddd",function(c,h){return h.weekdaysShortRegex(c)}),Re("dddd",function(c,h){return h.weekdaysRegex(c)}),yr(["dd","ddd","dddd"],function(c,h,m,_){var I=m._locale.weekdaysParse(c,_,m._strict);I!=null?h.d=I:v(m).invalidWeekday=c}),yr(["d","e","E"],function(c,h,m,_){h[_]=qe(c)});function Cb(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Sb(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Cc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var _b="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ch="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rb=vn,Tb=vn,kb=vn;function Eb(c,h){var m=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?Cc(m,this._week.dow):c?m[c.day()]:m}function Pb(c){return c===!0?Cc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function Db(c){return c===!0?Cc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function Ob(c,h,m){var _,I,G,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)G=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(G,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(G,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(G,"").toLocaleLowerCase();return m?h==="dddd"?(I=Vt.call(this._weekdaysParse,de),I!==-1?I:null):h==="ddd"?(I=Vt.call(this._shortWeekdaysParse,de),I!==-1?I:null):(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null):h==="dddd"?(I=Vt.call(this._weekdaysParse,de),I!==-1||(I=Vt.call(this._shortWeekdaysParse,de),I!==-1)?I:(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null)):h==="ddd"?(I=Vt.call(this._shortWeekdaysParse,de),I!==-1||(I=Vt.call(this._weekdaysParse,de),I!==-1)?I:(I=Vt.call(this._minWeekdaysParse,de),I!==-1?I:null)):(I=Vt.call(this._minWeekdaysParse,de),I!==-1||(I=Vt.call(this._weekdaysParse,de),I!==-1)?I:(I=Vt.call(this._shortWeekdaysParse,de),I!==-1?I:null))}function Mb(c,h,m){var _,I,G;if(this._weekdaysParseExact)return Ob.call(this,c,h,m);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(I=b([2e3,1]).day(_),m&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(I,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(I,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(I,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(G="^"+this.weekdays(I,"")+"|^"+this.weekdaysShort(I,"")+"|^"+this.weekdaysMin(I,""),this._weekdaysParse[_]=new RegExp(G.replace(".",""),"i")),m&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(m&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(m&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!m&&this._weekdaysParse[_].test(c))return _}}function Ib(c){if(!this.isValid())return c!=null?this:NaN;var h=jn(this,"Day");return c!=null?(c=Cb(c,this.localeData()),this.add(c-h,"d")):h}function Nb(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function Ab(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=Sb(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function Fb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Rb),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function Lb(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tb),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $b(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Sc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kb),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Sc(){function c(bn,Ao){return Ao.length-bn.length}var h=[],m=[],_=[],I=[],G,de,ke,je,et;for(G=0;G<7;G++)de=b([2e3,1]).day(G),ke=Vn(this.weekdaysMin(de,"")),je=Vn(this.weekdaysShort(de,"")),et=Vn(this.weekdays(de,"")),h.push(ke),m.push(je),_.push(et),I.push(ke),I.push(je),I.push(et);h.sort(c),m.sort(c),_.sort(c),I.sort(c),this._weekdaysRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+m.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function _c(){return this.hours()%12||12}function Vb(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,_c),j("k",["kk",2],0,Vb),j("hmm",0,0,function(){return""+_c.apply(this)+V(this.minutes(),2)}),j("hmmss",0,0,function(){return""+_c.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)});function Sh(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}Sh("a",!0),Sh("A",!1);function _h(c,h){return h._meridiemParse}Re("a",_h),Re("A",_h),Re("H",Ue,Wr),Re("h",Ue,Jt),Re("k",Ue,Jt),Re("HH",Ue,st),Re("hh",Ue,st),Re("kk",Ue,st),Re("hmm",tt),Re("hmmss",Mn),Re("Hmm",tt),Re("Hmmss",Mn),mt(["H","HH"],we),mt(["k","kk"],function(c,h,m){var _=qe(c);h[we]=_===24?0:_}),mt(["a","A"],function(c,h,m){m._isPm=m._locale.isPM(c),m._meridiem=c}),mt(["h","hh"],function(c,h,m){h[we]=qe(c),v(m).bigHour=!0}),mt("hmm",function(c,h,m){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_)),v(m).bigHour=!0}),mt("hmmss",function(c,h,m){var _=c.length-4,I=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_,2)),h[Ye]=qe(c.substr(I)),v(m).bigHour=!0}),mt("Hmm",function(c,h,m){var _=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_))}),mt("Hmmss",function(c,h,m){var _=c.length-4,I=c.length-2;h[we]=qe(c.substr(0,_)),h[Ne]=qe(c.substr(_,2)),h[Ye]=qe(c.substr(I))});function jb(c){return(c+"").toLowerCase().charAt(0)==="p"}var Wb=/[ap]\.?m?\.?/i,Bb=en("Hours",!0);function Hb(c,h,m){return c>11?m?"pm":"PM":m?"am":"AM"}var xh={calendar:N,longDateFormat:ie,invalidDate:B,ordinal:Q,dayOfMonthOrdinalParse:fe,relativeTime:Ce,months:rb,monthsShort:mh,week:gb,weekdays:_b,weekdaysMin:xb,weekdaysShort:Ch,meridiemParse:Wb},Ft={},Ws={},Bs;function zb(c,h){var m,_=Math.min(c.length,h.length);for(m=0;m<_;m+=1)if(c[m]!==h[m])return m;return _}function Rh(c){return c&&c.toLowerCase().replace("_","-")}function Yb(c){for(var h=0,m,_,I,G;h<c.length;){for(G=Rh(c[h]).split("-"),m=G.length,_=Rh(c[h+1]),_=_?_.split("-"):null;m>0;){if(I=ga(G.slice(0,m).join("-")),I)return I;if(_&&_.length>=m&&zb(G,_)>=m-1)break;m--}h++}return Bs}function Ub(c){return!!(c&&c.match("^[^/\\\\]*$"))}function ga(c){var h=null,m;if(Ft[c]===void 0&&e&&e.exports&&Ub(c))try{h=Bs._abbr,m=VN,m("./locale/"+c),tr(h)}catch{Ft[c]=null}return Ft[c]}function tr(c,h){var m;return c&&(u(h)?m=Oo(c):m=xc(c,h),m?Bs=m:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),Bs._abbr}function xc(c,h){if(h!==null){var m,_=xh;if(h.abbr=c,Ft[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Ft[c]._config;else if(h.parentLocale!=null)if(Ft[h.parentLocale]!=null)_=Ft[h.parentLocale]._config;else if(m=ga(h.parentLocale),m!=null)_=m._config;else return Ws[h.parentLocale]||(Ws[h.parentLocale]=[]),Ws[h.parentLocale].push({name:c,config:h}),null;return Ft[c]=new H(Y(_,h)),Ws[c]&&Ws[c].forEach(function(I){xc(I.name,I.config)}),tr(c),Ft[c]}else return delete Ft[c],null}function qb(c,h){if(h!=null){var m,_,I=xh;Ft[c]!=null&&Ft[c].parentLocale!=null?Ft[c].set(Y(Ft[c]._config,h)):(_=ga(c),_!=null&&(I=_._config),h=Y(I,h),_==null&&(h.abbr=c),m=new H(h),m.parentLocale=Ft[c],Ft[c]=m),tr(c)}else Ft[c]!=null&&(Ft[c].parentLocale!=null?(Ft[c]=Ft[c].parentLocale,c===tr()&&tr(c)):Ft[c]!=null&&delete Ft[c]);return Ft[c]}function Oo(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return Bs;if(!i(c)){if(h=ga(c),h)return h;c=[c]}return Yb(c)}function Gb(){return ae(Ft)}function Rc(c){var h,m=c._a;return m&&v(c).overflow===-2&&(h=m[U]<0||m[U]>11?U:m[pe]<1||m[pe]>wc(m[rn],m[U])?pe:m[we]<0||m[we]>24||m[we]===24&&(m[Ne]!==0||m[Ye]!==0||m[Je]!==0)?we:m[Ne]<0||m[Ne]>59?Ne:m[Ye]<0||m[Ye]>59?Ye:m[Je]<0||m[Je]>999?Je:-1,v(c)._overflowDayOfYear&&(h<rn||h>pe)&&(h=pe),v(c)._overflowWeeks&&h===-1&&(h=Ze),v(c)._overflowWeekday&&h===-1&&(h=Ge),v(c).overflow=h),c}var Kb=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xb=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zb=/Z|[+-]\d\d(?::?\d\d)?/,ya=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Tc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qb=/^\/?Date\((-?\d+)/i,Jb=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ew={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Th(c){var h,m,_=c._i,I=Kb.exec(_)||Xb.exec(_),G,de,ke,je,et=ya.length,bn=Tc.length;if(I){for(v(c).iso=!0,h=0,m=et;h<m;h++)if(ya[h][1].exec(I[1])){de=ya[h][0],G=ya[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(I[3]){for(h=0,m=bn;h<m;h++)if(Tc[h][1].exec(I[3])){ke=(I[2]||" ")+Tc[h][0];break}if(ke==null){c._isValid=!1;return}}if(!G&&ke!=null){c._isValid=!1;return}if(I[4])if(Zb.exec(I[4]))je="Z";else{c._isValid=!1;return}c._f=de+(ke||"")+(je||""),Ec(c)}else c._isValid=!1}function tw(c,h,m,_,I,G){var de=[nw(c),mh.indexOf(h),parseInt(m,10),parseInt(_,10),parseInt(I,10)];return G&&de.push(parseInt(G,10)),de}function nw(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function ow(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function rw(c,h,m){if(c){var _=Ch.indexOf(c),I=new Date(h[0],h[1],h[2]).getDay();if(_!==I)return v(m).weekdayMismatch=!0,m._isValid=!1,!1}return!0}function sw(c,h,m){if(c)return ew[c];if(h)return 0;var _=parseInt(m,10),I=_%100,G=(_-I)/100;return G*60+I}function kh(c){var h=Jb.exec(ow(c._i)),m;if(h){if(m=tw(h[4],h[3],h[2],h[5],h[6],h[7]),!rw(h[1],m,c))return;c._a=m,c._tzm=sw(h[8],h[9],h[10]),c._d=Vs.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function iw(c){var h=Qb.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(Th(c),c._isValid===!1)delete c._isValid;else return;if(kh(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function Yr(c,h,m){return c??h??m}function aw(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function kc(c){var h,m,_=[],I,G,de;if(!c._d){for(I=aw(c),c._w&&c._a[pe]==null&&c._a[U]==null&&lw(c),c._dayOfYear!=null&&(de=Yr(c._a[rn],I[rn]),(c._dayOfYear>Ut(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),m=Vs(de,0,c._dayOfYear),c._a[U]=m.getUTCMonth(),c._a[pe]=m.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=I[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[we]===24&&c._a[Ne]===0&&c._a[Ye]===0&&c._a[Je]===0&&(c._nextDay=!0,c._a[we]=0),c._d=(c._useUTC?Vs:pb).apply(null,_),G=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[we]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==G&&(v(c).weekdayMismatch=!0)}}function lw(c){var h,m,_,I,G,de,ke,je,et;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(G=1,de=4,m=Yr(h.GG,c._a[rn],js(Dt(),1,4).year),_=Yr(h.W,1),I=Yr(h.E,1),(I<1||I>7)&&(je=!0)):(G=c._locale._week.dow,de=c._locale._week.doy,et=js(Dt(),G,de),m=Yr(h.gg,c._a[rn],et.year),_=Yr(h.w,et.week),h.d!=null?(I=h.d,(I<0||I>6)&&(je=!0)):h.e!=null?(I=h.e+G,(h.e<0||h.e>6)&&(je=!0)):I=G),_<1||_>Do(m,G,de)?v(c)._overflowWeeks=!0:je!=null?v(c)._overflowWeekday=!0:(ke=wh(m,_,I,G,de),c._a[rn]=ke.year,c._dayOfYear=ke.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function Ec(c){if(c._f===o.ISO_8601){Th(c);return}if(c._f===o.RFC_2822){kh(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,m,_,I,G,de,ke=h.length,je=0,et,bn;for(I=ce(c._f,c._locale).match(W)||[],bn=I.length,m=0;m<bn;m++)G=I[m],_=(h.match(yc(G,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),je+=_.length),se[G]?(_?v(c).empty=!1:v(c).unusedTokens.push(G),vc(G,_,c)):c._strict&&!_&&v(c).unusedTokens.push(G);v(c).charsLeftOver=ke-je,h.length>0&&v(c).unusedInput.push(h),c._a[we]<=12&&v(c).bigHour===!0&&c._a[we]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[we]=cw(c._locale,c._a[we],c._meridiem),et=v(c).era,et!==null&&(c._a[rn]=c._locale.erasConvertYear(et,c._a[rn])),kc(c),Rc(c)}function cw(c,h,m){var _;return m==null?h:c.meridiemHour!=null?c.meridiemHour(h,m):(c.isPM!=null&&(_=c.isPM(m),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function dw(c){var h,m,_,I,G,de,ke=!1,je=c._f.length;if(je===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(I=0;I<je;I++)G=0,de=!1,h=D({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[I],Ec(h),P(h)&&(de=!0),G+=v(h).charsLeftOver,G+=v(h).unusedTokens.length*10,v(h).score=G,ke?G<_&&(_=G,m=h):(_==null||G<_||de)&&(_=G,m=h,de&&(ke=!0));w(c,m||h)}function uw(c){if(!c._d){var h=rt(c._i),m=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,m,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),kc(c)}}function hw(c){var h=new A(Rc(Eh(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function Eh(c){var h=c._i,m=c._f;return c._locale=c._locale||Oo(c._l),h===null||m===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new A(Rc(h)):(p(h)?c._d=h:i(m)?dw(c):m?Ec(c):fw(c),P(c)||(c._d=null),c))}function fw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?iw(c):i(h)?(c._a=y(h.slice(0),function(m){return parseInt(m,10)}),kc(c)):a(h)?uw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function Ph(c,h,m,_,I){var G={};return(h===!0||h===!1)&&(_=h,h=void 0),(m===!0||m===!1)&&(_=m,m=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),G._isAMomentObject=!0,G._useUTC=G._isUTC=I,G._l=m,G._i=c,G._f=h,G._strict=_,hw(G)}function Dt(c,h,m,_){return Ph(c,h,m,_,!1)}var pw=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Dt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),mw=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Dt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function Dh(c,h){var m,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Dt();for(m=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](m))&&(m=h[_]);return m}function gw(){var c=[].slice.call(arguments,0);return Dh("isBefore",c)}function yw(){var c=[].slice.call(arguments,0);return Dh("isAfter",c)}var vw=function(){return Date.now?Date.now():+new Date},Hs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function bw(c){var h,m=!1,_,I=Hs.length;for(h in c)if(l(c,h)&&!(Vt.call(Hs,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<I;++_)if(c[Hs[_]]){if(m)return!1;parseFloat(c[Hs[_]])!==qe(c[Hs[_]])&&(m=!0)}return!0}function ww(){return this._isValid}function Cw(){return to(NaN)}function va(c){var h=rt(c),m=h.year||0,_=h.quarter||0,I=h.month||0,G=h.week||h.isoWeek||0,de=h.day||0,ke=h.hour||0,je=h.minute||0,et=h.second||0,bn=h.millisecond||0;this._isValid=bw(h),this._milliseconds=+bn+et*1e3+je*6e4+ke*1e3*60*60,this._days=+de+G*7,this._months=+I+_*3+m*12,this._data={},this._locale=Oo(),this._bubble()}function ba(c){return c instanceof va}function Pc(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function Sw(c,h,m){var _=Math.min(c.length,h.length),I=Math.abs(c.length-h.length),G=0,de;for(de=0;de<_;de++)qe(c[de])!==qe(h[de])&&G++;return G+I}function Oh(c,h){j(c,0,0,function(){var m=this.utcOffset(),_="+";return m<0&&(m=-m,_="-"),_+V(~~(m/60),2)+h+V(~~m%60,2)})}Oh("Z",":"),Oh("ZZ",""),Re("Z",pt),Re("ZZ",pt),mt(["Z","ZZ"],function(c,h,m){m._useUTC=!0,m._tzm=Dc(pt,c)});var _w=/([\+\-]|\d\d)/gi;function Dc(c,h){var m=(h||"").match(c),_,I,G;return m===null?null:(_=m[m.length-1]||[],I=(_+"").match(_w)||["-",0,0],G=+(I[1]*60)+qe(I[2]),G===0?0:I[0]==="+"?G:-G)}function Oc(c,h){var m,_;return h._isUTC?(m=h.clone(),_=(F(c)||p(c)?c.valueOf():Dt(c).valueOf())-m.valueOf(),m._d.setTime(m._d.valueOf()+_),o.updateOffset(m,!1),m):Dt(c).local()}function Mc(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function xw(c,h,m){var _=this._offset||0,I;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=Dc(pt,c),c===null)return this}else Math.abs(c)<16&&!m&&(c=c*60);return!this._isUTC&&h&&(I=Mc(this)),this._offset=c,this._isUTC=!0,I!=null&&this.add(I,"m"),_!==c&&(!h||this._changeInProgress?Ah(this,to(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Mc(this)}function Rw(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function Tw(c){return this.utcOffset(0,c)}function kw(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(Mc(this),"m")),this}function Ew(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=Dc(uo,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function Pw(c){return this.isValid()?(c=c?Dt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function Dw(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ow(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return D(c,this),c=Eh(c),c._a?(h=c._isUTC?b(c._a):Dt(c._a),this._isDSTShifted=this.isValid()&&Sw(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mw(){return this.isValid()?!this._isUTC:!1}function Iw(){return this.isValid()?this._isUTC:!1}function Mh(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Nw=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Aw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function to(c,h){var m=c,_=null,I,G,de;return ba(c)?m={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(m={},h?m[h]=+c:m.milliseconds=+c):(_=Nw.exec(c))?(I=_[1]==="-"?-1:1,m={y:0,d:qe(_[pe])*I,h:qe(_[we])*I,m:qe(_[Ne])*I,s:qe(_[Ye])*I,ms:qe(Pc(_[Je]*1e3))*I}):(_=Aw.exec(c))?(I=_[1]==="-"?-1:1,m={y:vr(_[2],I),M:vr(_[3],I),w:vr(_[4],I),d:vr(_[5],I),h:vr(_[6],I),m:vr(_[7],I),s:vr(_[8],I)}):m==null?m={}:typeof m=="object"&&("from"in m||"to"in m)&&(de=Fw(Dt(m.from),Dt(m.to)),m={},m.ms=de.milliseconds,m.M=de.months),G=new va(m),ba(c)&&l(c,"_locale")&&(G._locale=c._locale),ba(c)&&l(c,"_isValid")&&(G._isValid=c._isValid),G}to.fn=va.prototype,to.invalid=Cw;function vr(c,h){var m=c&&parseFloat(c.replace(",","."));return(isNaN(m)?0:m)*h}function Ih(c,h){var m={};return m.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(m.months,"M").isAfter(h)&&--m.months,m.milliseconds=+h-+c.clone().add(m.months,"M"),m}function Fw(c,h){var m;return c.isValid()&&h.isValid()?(h=Oc(h,c),c.isBefore(h)?m=Ih(c,h):(m=Ih(h,c),m.milliseconds=-m.milliseconds,m.months=-m.months),m):{milliseconds:0,months:0}}function Nh(c,h){return function(m,_){var I,G;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),G=m,m=_,_=G),I=to(m,_),Ah(this,I,c),this}}function Ah(c,h,m,_){var I=h._milliseconds,G=Pc(h._days),de=Pc(h._months);c.isValid()&&(_=_??!0,de&&yh(c,jn(c,"Month")+de*m),G&&ho(c,"Date",jn(c,"Date")+G*m),I&&c._d.setTime(c._d.valueOf()+I*m),_&&o.updateOffset(c,G||de))}var Lw=Nh(1,"add"),$w=Nh(-1,"subtract");function Fh(c){return typeof c=="string"||c instanceof String}function Vw(c){return F(c)||p(c)||Fh(c)||f(c)||Ww(c)||jw(c)||c===null||c===void 0}function jw(c){var h=a(c)&&!d(c),m=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],I,G,de=_.length;for(I=0;I<de;I+=1)G=_[I],m=m||l(c,G);return h&&m}function Ww(c){var h=i(c),m=!1;return h&&(m=c.filter(function(_){return!f(_)&&Fh(c)}).length===0),h&&m}function Bw(c){var h=a(c)&&!d(c),m=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],I,G;for(I=0;I<_.length;I+=1)G=_[I],m=m||l(c,G);return h&&m}function Hw(c,h){var m=c.diff(h,"days",!0);return m<-6?"sameElse":m<-1?"lastWeek":m<0?"lastDay":m<1?"sameDay":m<2?"nextDay":m<7?"nextWeek":"sameElse"}function zw(c,h){arguments.length===1&&(arguments[0]?Vw(arguments[0])?(c=arguments[0],h=void 0):Bw(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var m=c||Dt(),_=Oc(m,this).startOf("day"),I=o.calendarFormat(this,_)||"sameElse",G=h&&(X(h[I])?h[I].call(this,m):h[I]);return this.format(G||this.localeData().calendar(I,this,Dt(m)))}function Yw(){return new A(this)}function Uw(c,h){var m=F(c)?c:Dt(c);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()>m.valueOf():m.valueOf()<this.clone().startOf(h).valueOf()):!1}function qw(c,h){var m=F(c)?c:Dt(c);return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()<m.valueOf():this.clone().endOf(h).valueOf()<m.valueOf()):!1}function Gw(c,h,m,_){var I=F(c)?c:Dt(c),G=F(h)?h:Dt(h);return this.isValid()&&I.isValid()&&G.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(I,m):!this.isBefore(I,m))&&(_[1]===")"?this.isBefore(G,m):!this.isAfter(G,m))):!1}function Kw(c,h){var m=F(c)?c:Dt(c),_;return this.isValid()&&m.isValid()?(h=Ae(h)||"millisecond",h==="millisecond"?this.valueOf()===m.valueOf():(_=m.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function Xw(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function Zw(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function Qw(c,h,m){var _,I,G;if(!this.isValid())return NaN;if(_=Oc(c,this),!_.isValid())return NaN;switch(I=(_.utcOffset()-this.utcOffset())*6e4,h=Ae(h),h){case"year":G=wa(this,_)/12;break;case"month":G=wa(this,_);break;case"quarter":G=wa(this,_)/3;break;case"second":G=(this-_)/1e3;break;case"minute":G=(this-_)/6e4;break;case"hour":G=(this-_)/36e5;break;case"day":G=(this-_-I)/864e5;break;case"week":G=(this-_-I)/6048e5;break;default:G=this-_}return m?G:Sn(G)}function wa(c,h){if(c.date()<h.date())return-wa(h,c);var m=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(m,"months"),I,G;return h-_<0?(I=c.clone().add(m-1,"months"),G=(h-_)/(_-I)):(I=c.clone().add(m+1,"months"),G=(h-_)/(I-_)),-(m+G)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Jw(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eC(c){if(!this.isValid())return null;var h=c!==!0,m=h?this.clone().utc():this;return m.year()<0||m.year()>9999?te(m,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):X(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(m,"Z")):te(m,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",m,_,I,G;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),m="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",I="-MM-DD[T]HH:mm:ss.SSS",G=h+'[")]',this.format(m+_+I+G)}function nC(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function oC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?to({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function rC(c){return this.from(Dt(),c)}function sC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Dt(c).isValid())?to({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function iC(c){return this.to(Dt(),c)}function Lh(c){var h;return c===void 0?this._locale._abbr:(h=Oo(c),h!=null&&(this._locale=h),this)}var $h=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Vh(){return this._locale}var Ca=1e3,Ur=60*Ca,Sa=60*Ur,jh=(365*400+97)*24*Sa;function qr(c,h){return(c%h+h)%h}function Wh(c,h,m){return c<100&&c>=0?new Date(c+400,h,m)-jh:new Date(c,h,m).valueOf()}function Bh(c,h,m){return c<100&&c>=0?Date.UTC(c+400,h,m)-jh:Date.UTC(c,h,m)}function aC(c){var h,m;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?Bh:Wh,c){case"year":h=m(this.year(),0,1);break;case"quarter":h=m(this.year(),this.month()-this.month()%3,1);break;case"month":h=m(this.year(),this.month(),1);break;case"week":h=m(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=m(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=m(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=qr(h+(this._isUTC?0:this.utcOffset()*Ur),Sa);break;case"minute":h=this._d.valueOf(),h-=qr(h,Ur);break;case"second":h=this._d.valueOf(),h-=qr(h,Ca);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function lC(c){var h,m;if(c=Ae(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(m=this._isUTC?Bh:Wh,c){case"year":h=m(this.year()+1,0,1)-1;break;case"quarter":h=m(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=m(this.year(),this.month()+1,1)-1;break;case"week":h=m(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=m(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=m(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=Sa-qr(h+(this._isUTC?0:this.utcOffset()*Ur),Sa)-1;break;case"minute":h=this._d.valueOf(),h+=Ur-qr(h,Ur)-1;break;case"second":h=this._d.valueOf(),h+=Ca-qr(h,Ca)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function cC(){return this._d.valueOf()-(this._offset||0)*6e4}function dC(){return Math.floor(this.valueOf()/1e3)}function uC(){return new Date(this.valueOf())}function hC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function fC(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function pC(){return this.isValid()?this.toISOString():null}function mC(){return P(this)}function gC(){return w({},v(this))}function yC(){return v(this).overflow}function vC(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),Re("N",Ic),Re("NN",Ic),Re("NNN",Ic),Re("NNNN",PC),Re("NNNNN",DC),mt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,m,_){var I=m._locale.erasParse(c,_,m._strict);I?v(m).era=I:v(m).invalidEra=c}),Re("y",vt),Re("yy",vt),Re("yyy",vt),Re("yyyy",vt),Re("yo",OC),mt(["y","yy","yyy","yyyy"],rn),mt(["yo"],function(c,h,m,_){var I;m._locale._eraYearOrdinalRegex&&(I=c.match(m._locale._eraYearOrdinalRegex)),m._locale.eraYearOrdinalParse?h[rn]=m._locale.eraYearOrdinalParse(c,I):h[rn]=parseInt(c,10)});function bC(c,h){var m,_,I,G=this._eras||Oo("en")._eras;for(m=0,_=G.length;m<_;++m){switch(typeof G[m].since){case"string":I=o(G[m].since).startOf("day"),G[m].since=I.valueOf();break}switch(typeof G[m].until){case"undefined":G[m].until=1/0;break;case"string":I=o(G[m].until).startOf("day").valueOf(),G[m].until=I.valueOf();break}}return G}function wC(c,h,m){var _,I,G=this.eras(),de,ke,je;for(c=c.toUpperCase(),_=0,I=G.length;_<I;++_)if(de=G[_].name.toUpperCase(),ke=G[_].abbr.toUpperCase(),je=G[_].narrow.toUpperCase(),m)switch(h){case"N":case"NN":case"NNN":if(ke===c)return G[_];break;case"NNNN":if(de===c)return G[_];break;case"NNNNN":if(je===c)return G[_];break}else if([de,ke,je].indexOf(c)>=0)return G[_]}function CC(c,h){var m=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*m}function SC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].name;return""}function _C(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].narrow;return""}function xC(){var c,h,m,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(m=this.clone().startOf("day").valueOf(),_[c].since<=m&&m<=_[c].until||_[c].until<=m&&m<=_[c].since)return _[c].abbr;return""}function RC(){var c,h,m,_,I=this.localeData().eras();for(c=0,h=I.length;c<h;++c)if(m=I[c].since<=I[c].until?1:-1,_=this.clone().startOf("day").valueOf(),I[c].since<=_&&_<=I[c].until||I[c].until<=_&&_<=I[c].since)return(this.year()-o(I[c].since).year())*m+I[c].offset;return this.year()}function TC(c){return l(this,"_erasNameRegex")||Nc.call(this),c?this._erasNameRegex:this._erasRegex}function kC(c){return l(this,"_erasAbbrRegex")||Nc.call(this),c?this._erasAbbrRegex:this._erasRegex}function EC(c){return l(this,"_erasNarrowRegex")||Nc.call(this),c?this._erasNarrowRegex:this._erasRegex}function Ic(c,h){return h.erasAbbrRegex(c)}function PC(c,h){return h.erasNameRegex(c)}function DC(c,h){return h.erasNarrowRegex(c)}function OC(c,h){return h._eraYearOrdinalRegex||vt}function Nc(){var c=[],h=[],m=[],_=[],I,G,de,ke,je,et=this.eras();for(I=0,G=et.length;I<G;++I)de=Vn(et[I].name),ke=Vn(et[I].abbr),je=Vn(et[I].narrow),h.push(de),c.push(ke),m.push(je),_.push(de),_.push(ke),_.push(je);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+m.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function _a(c,h){j(0,[c,c.length],0,h)}_a("gggg","weekYear"),_a("ggggg","weekYear"),_a("GGGG","isoWeekYear"),_a("GGGGG","isoWeekYear"),Re("G",ln),Re("g",ln),Re("GG",Ue,st),Re("gg",Ue,st),Re("GGGG",Me,Xt),Re("gggg",Me,Xt),Re("GGGGG",He,on),Re("ggggg",He,on),yr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,m,_){h[_.substr(0,2)]=qe(c)}),yr(["gg","GG"],function(c,h,m,_){h[_]=o.parseTwoDigitYear(c)});function MC(c){return Hh.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function IC(c){return Hh.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function NC(){return Do(this.year(),1,4)}function AC(){return Do(this.isoWeekYear(),1,4)}function FC(){var c=this.localeData()._week;return Do(this.year(),c.dow,c.doy)}function LC(){var c=this.localeData()._week;return Do(this.weekYear(),c.dow,c.doy)}function Hh(c,h,m,_,I){var G;return c==null?js(this,_,I).year:(G=Do(c,_,I),h>G&&(h=G),$C.call(this,c,h,m,_,I))}function $C(c,h,m,_,I){var G=wh(c,h,m,_,I),de=Vs(G.year,0,G.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),Re("Q",Kt),mt("Q",function(c,h){h[U]=(qe(c)-1)*3});function VC(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),Re("D",Ue,Jt),Re("DD",Ue,st),Re("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),mt(["D","DD"],pe),mt("Do",function(c,h){h[pe]=qe(c.match(Ue)[0])});var zh=en("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),Re("DDD",hn),Re("DDDD",Yt),mt(["DDD","DDDD"],function(c,h,m){m._dayOfYear=qe(c)});function jC(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),Re("m",Ue,Wr),Re("mm",Ue,st),mt(["m","mm"],Ne);var WC=en("Minutes",!1);j("s",["ss",2],0,"second"),Re("s",Ue,Wr),Re("ss",Ue,st),mt(["s","ss"],Ye);var BC=en("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Re("S",hn,Kt),Re("SS",hn,st),Re("SSS",hn,Yt);var nr,Yh;for(nr="SSSS";nr.length<=9;nr+="S")Re(nr,vt);function HC(c,h){h[Je]=qe(("0."+c)*1e3)}for(nr="S";nr.length<=9;nr+="S")mt(nr,HC);Yh=en("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function zC(){return this._isUTC?"UTC":""}function YC(){return this._isUTC?"Coordinated Universal Time":""}var ge=A.prototype;ge.add=Lw,ge.calendar=zw,ge.clone=Yw,ge.diff=Qw,ge.endOf=lC,ge.format=nC,ge.from=oC,ge.fromNow=rC,ge.to=sC,ge.toNow=iC,ge.get=fn,ge.invalidAt=yC,ge.isAfter=Uw,ge.isBefore=qw,ge.isBetween=Gw,ge.isSame=Kw,ge.isSameOrAfter=Xw,ge.isSameOrBefore=Zw,ge.isValid=mC,ge.lang=$h,ge.locale=Lh,ge.localeData=Vh,ge.max=mw,ge.min=pw,ge.parsingFlags=gC,ge.set=$s,ge.startOf=aC,ge.subtract=$w,ge.toArray=hC,ge.toObject=fC,ge.toDate=uC,ge.toISOString=eC,ge.inspect=tC,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=pC,ge.toString=Jw,ge.unix=dC,ge.valueOf=cC,ge.creationData=vC,ge.eraName=SC,ge.eraNarrow=_C,ge.eraAbbr=xC,ge.eraYear=RC,ge.year=At,ge.isLeapYear=Bt,ge.weekYear=MC,ge.isoWeekYear=IC,ge.quarter=ge.quarters=VC,ge.month=vh,ge.daysInMonth=ub,ge.week=ge.weeks=bb,ge.isoWeek=ge.isoWeeks=wb,ge.weeksInYear=FC,ge.weeksInWeekYear=LC,ge.isoWeeksInYear=NC,ge.isoWeeksInISOWeekYear=AC,ge.date=zh,ge.day=ge.days=Ib,ge.weekday=Nb,ge.isoWeekday=Ab,ge.dayOfYear=jC,ge.hour=ge.hours=Bb,ge.minute=ge.minutes=WC,ge.second=ge.seconds=BC,ge.millisecond=ge.milliseconds=Yh,ge.utcOffset=xw,ge.utc=Tw,ge.local=kw,ge.parseZone=Ew,ge.hasAlignedHourOffset=Pw,ge.isDST=Dw,ge.isLocal=Mw,ge.isUtcOffset=Iw,ge.isUtc=Mh,ge.isUTC=Mh,ge.zoneAbbr=zC,ge.zoneName=YC,ge.dates=R("dates accessor is deprecated. Use date instead.",zh),ge.months=R("months accessor is deprecated. Use month instead",vh),ge.years=R("years accessor is deprecated. Use year instead",At),ge.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rw),ge.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ow);function UC(c){return Dt(c*1e3)}function qC(){return Dt.apply(null,arguments).parseZone()}function Uh(c){return c}var lt=H.prototype;lt.calendar=M,lt.longDateFormat=he,lt.invalidDate=re,lt.ordinal=me,lt.preparse=Uh,lt.postformat=Uh,lt.relativeTime=ve,lt.pastFuture=xe,lt.set=q,lt.eras=bC,lt.erasParse=wC,lt.erasConvertYear=CC,lt.erasAbbrRegex=kC,lt.erasNameRegex=TC,lt.erasNarrowRegex=EC,lt.months=ab,lt.monthsShort=lb,lt.monthsParse=db,lt.monthsRegex=fb,lt.monthsShortRegex=hb,lt.week=mb,lt.firstDayOfYear=vb,lt.firstDayOfWeek=yb,lt.weekdays=Eb,lt.weekdaysMin=Db,lt.weekdaysShort=Pb,lt.weekdaysParse=Mb,lt.weekdaysRegex=Fb,lt.weekdaysShortRegex=Lb,lt.weekdaysMinRegex=$b,lt.isPM=jb,lt.meridiem=Hb;function xa(c,h,m,_){var I=Oo(),G=b().set(_,h);return I[m](G,c)}function qh(c,h,m){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return xa(c,h,m,"month");var _,I=[];for(_=0;_<12;_++)I[_]=xa(c,_,m,"month");return I}function Ac(c,h,m,_){typeof c=="boolean"?(f(h)&&(m=h,h=void 0),h=h||""):(h=c,m=h,c=!1,f(h)&&(m=h,h=void 0),h=h||"");var I=Oo(),G=c?I._week.dow:0,de,ke=[];if(m!=null)return xa(h,(m+G)%7,_,"day");for(de=0;de<7;de++)ke[de]=xa(h,(de+G)%7,_,"day");return ke}function GC(c,h){return qh(c,h,"months")}function KC(c,h){return qh(c,h,"monthsShort")}function XC(c,h,m){return Ac(c,h,m,"weekdays")}function ZC(c,h,m){return Ac(c,h,m,"weekdaysShort")}function QC(c,h,m){return Ac(c,h,m,"weekdaysMin")}tr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,m=qe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+m}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",tr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Oo);var Mo=Math.abs;function JC(){var c=this._data;return this._milliseconds=Mo(this._milliseconds),this._days=Mo(this._days),this._months=Mo(this._months),c.milliseconds=Mo(c.milliseconds),c.seconds=Mo(c.seconds),c.minutes=Mo(c.minutes),c.hours=Mo(c.hours),c.months=Mo(c.months),c.years=Mo(c.years),this}function Gh(c,h,m,_){var I=to(h,m);return c._milliseconds+=_*I._milliseconds,c._days+=_*I._days,c._months+=_*I._months,c._bubble()}function eS(c,h){return Gh(this,c,h,1)}function tS(c,h){return Gh(this,c,h,-1)}function Kh(c){return c<0?Math.floor(c):Math.ceil(c)}function nS(){var c=this._milliseconds,h=this._days,m=this._months,_=this._data,I,G,de,ke,je;return c>=0&&h>=0&&m>=0||c<=0&&h<=0&&m<=0||(c+=Kh(Fc(m)+h)*864e5,h=0,m=0),_.milliseconds=c%1e3,I=Sn(c/1e3),_.seconds=I%60,G=Sn(I/60),_.minutes=G%60,de=Sn(G/60),_.hours=de%24,h+=Sn(de/24),je=Sn(Xh(h)),m+=je,h-=Kh(Fc(je)),ke=Sn(m/12),m%=12,_.days=h,_.months=m,_.years=ke,this}function Xh(c){return c*4800/146097}function Fc(c){return c*146097/4800}function oS(c){if(!this.isValid())return NaN;var h,m,_=this._milliseconds;if(c=Ae(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,m=this._months+Xh(h),c){case"month":return m;case"quarter":return m/3;case"year":return m/12}else switch(h=this._days+Math.round(Fc(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function Io(c){return function(){return this.as(c)}}var Zh=Io("ms"),rS=Io("s"),sS=Io("m"),iS=Io("h"),aS=Io("d"),lS=Io("w"),cS=Io("M"),dS=Io("Q"),uS=Io("y"),hS=Zh;function fS(){return to(this)}function pS(c){return c=Ae(c),this.isValid()?this[c+"s"]():NaN}function br(c){return function(){return this.isValid()?this._data[c]:NaN}}var mS=br("milliseconds"),gS=br("seconds"),yS=br("minutes"),vS=br("hours"),bS=br("days"),wS=br("months"),CS=br("years");function SS(){return Sn(this.days()/7)}var No=Math.round,Gr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _S(c,h,m,_,I){return I.relativeTime(h||1,!!m,c,_)}function xS(c,h,m,_){var I=to(c).abs(),G=No(I.as("s")),de=No(I.as("m")),ke=No(I.as("h")),je=No(I.as("d")),et=No(I.as("M")),bn=No(I.as("w")),Ao=No(I.as("y")),or=G<=m.ss&&["s",G]||G<m.s&&["ss",G]||de<=1&&["m"]||de<m.m&&["mm",de]||ke<=1&&["h"]||ke<m.h&&["hh",ke]||je<=1&&["d"]||je<m.d&&["dd",je];return m.w!=null&&(or=or||bn<=1&&["w"]||bn<m.w&&["ww",bn]),or=or||et<=1&&["M"]||et<m.M&&["MM",et]||Ao<=1&&["y"]||["yy",Ao],or[2]=h,or[3]=+c>0,or[4]=_,_S.apply(null,or)}function RS(c){return c===void 0?No:typeof c=="function"?(No=c,!0):!1}function TS(c,h){return Gr[c]===void 0?!1:h===void 0?Gr[c]:(Gr[c]=h,c==="s"&&(Gr.ss=h-1),!0)}function kS(c,h){if(!this.isValid())return this.localeData().invalidDate();var m=!1,_=Gr,I,G;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(m=c),typeof h=="object"&&(_=Object.assign({},Gr,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),I=this.localeData(),G=xS(this,!m,_,I),m&&(G=I.pastFuture(+this,G)),I.postformat(G)}var Lc=Math.abs;function Kr(c){return(c>0)-(c<0)||+c}function Ra(){if(!this.isValid())return this.localeData().invalidDate();var c=Lc(this._milliseconds)/1e3,h=Lc(this._days),m=Lc(this._months),_,I,G,de,ke=this.asSeconds(),je,et,bn,Ao;return ke?(_=Sn(c/60),I=Sn(_/60),c%=60,_%=60,G=Sn(m/12),m%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",je=ke<0?"-":"",et=Kr(this._months)!==Kr(ke)?"-":"",bn=Kr(this._days)!==Kr(ke)?"-":"",Ao=Kr(this._milliseconds)!==Kr(ke)?"-":"",je+"P"+(G?et+G+"Y":"")+(m?et+m+"M":"")+(h?bn+h+"D":"")+(I||_||c?"T":"")+(I?Ao+I+"H":"")+(_?Ao+_+"M":"")+(c?Ao+de+"S":"")):"P0D"}var nt=va.prototype;nt.isValid=ww,nt.abs=JC,nt.add=eS,nt.subtract=tS,nt.as=oS,nt.asMilliseconds=Zh,nt.asSeconds=rS,nt.asMinutes=sS,nt.asHours=iS,nt.asDays=aS,nt.asWeeks=lS,nt.asMonths=cS,nt.asQuarters=dS,nt.asYears=uS,nt.valueOf=hS,nt._bubble=nS,nt.clone=fS,nt.get=pS,nt.milliseconds=mS,nt.seconds=gS,nt.minutes=yS,nt.hours=vS,nt.days=bS,nt.weeks=SS,nt.months=wS,nt.years=CS,nt.humanize=kS,nt.toISOString=Ra,nt.toString=Ra,nt.toJSON=Ra,nt.locale=Lh,nt.localeData=Vh,nt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ra),nt.lang=$h,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Re("x",ln),Re("X",Qt),mt("X",function(c,h,m){m._d=new Date(parseFloat(c)*1e3)}),mt("x",function(c,h,m){m._d=new Date(qe(c))});//! moment.js
|
|
262
262
|
return o.version="2.30.1",r(Dt),o.fn=ge,o.min=gw,o.max=yw,o.now=vw,o.utc=b,o.unix=UC,o.months=GC,o.isDate=p,o.locale=tr,o.invalid=x,o.duration=to,o.isMoment=F,o.weekdays=XC,o.parseZone=qC,o.localeData=Oo,o.isDuration=ba,o.monthsShort=KC,o.weekdaysMin=QC,o.defineLocale=xc,o.updateLocale=qb,o.locales=Gb,o.weekdaysShort=ZC,o.normalizeUnits=Ae,o.relativeTimeRounding=RS,o.relativeTimeThreshold=TS,o.calendarFormat=Hw,o.prototype=ge,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})}(nl)),nl.exports}WN();const BN=`
|
|
263
263
|
html body {
|
|
264
264
|
font-family: "Courier", "sans-serif";
|
|
@@ -304,7 +304,7 @@ return o.version="2.30.1",r(Dt),o.fn=ge,o.min=gw,o.max=yw,o.now=vw,o.utc=b,o.uni
|
|
|
304
304
|
.align_left {
|
|
305
305
|
text-align: left;
|
|
306
306
|
}
|
|
307
|
-
`;class cv{constructor(){this.clientId=0,this.clientName="",this.cssStyles=BN}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=_e().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return hv(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=xm(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let g=a[p];if(d){const v=u.groupTotalsFormatter;g=v?v(a,u,o):""}else b&&(g=b(0,0,g,u,a,o));f.innerText=g||"",r.append(f)});return r}print(t,n,o){this.clientId=n,this.clientName=o;const r=window.open(),i=document.createElement("title");i.innerText=t.name||t.id;const a=r.document.querySelector("head");a.append(i),a.append(this.createStyleElement()),r.document.querySelector("body").append(this.createTableElement(t)),r.print()}}function HN(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class zN{constructor(t){this.downloadManager=new AS,this.filter=new DI,this.hotKeysBehavior=new FS,this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new cv;const{downloadManager:n,filter:o,hotKeys:r,id:i,name:a,printer:l,totalCalculator:d}=t;this.id=i,this.name=a||"",n&&(this.downloadManager=n),o&&(this.filter=o),r&&(this.hotKeysBehavior=r),l&&(this.printer=l),d&&(this.totalCalculator=d)}createGrid(t,n,o){this.reset();const r=new TN(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(Xp(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){HN(`#${this.id}`)||this.hotKeysBehavior.handleKeyboardEvent(t,this)}get grid(){return this._grid}get grouping(){return this._grouping}get isEdited(){return this._isEdited}set grid(t){this._grid=t}set grouping(t){if(this._grouping={...this._grouping,...t},!this.grid)return;const n=this.grid.getData();this.grouping.isGrouped?n.setGrouping(this.grouping.groups||[]):n.setGrouping([])}set isEdited(t){this._isEdited=t,this.notifyObservers()}set printer(t){this._printer=t}get printer(){return this._printer}get isActive(){return this._isActive}set isActive(t){this._isActive=t}get lastActiveSell(){return this._lastActiveCell}set lastActiveSell(t){this._lastActiveCell=t}resizeCanvas(){console.log(""),this.grid?.resizeCanvas()}registerObservers(t){~this._observers.indexOf(t)||this._observers.push(t)}notifyObservers(){for(const t of this._observers)t(this)}deleteObserver(t){const n=this._observers.indexOf(t);this._observers.splice(n,1)}reset(){this.grid?.onKeyDown.unsubscribe(Xp(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class YN extends Qu{constructor(){super(...arguments),this.x=0,this.y=0}}const Cn=new YN,UN=e=>{const t=e.getLength()-1;return e.getItem(t)},dv=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},uv=()=>{sv.commitCurrentEdit()},hv=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t};function fv(e){return function(t){t.preventDefault(),uv(),Cn.table=e,Cn.x=t.pageX||0,Cn.y=t.pageY||0,Cn.notify()}}class qN extends Qu{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const ri=new qN,GN=e=>{function t(){if(e.id!==ri.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,ri.activeTable=e,ri.notify()}
|
|
307
|
+
`;class cv{constructor(){this.clientId=0,this.clientName="",this.cssStyles=BN}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=_e().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return hv(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=xm(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let g=a[p];if(d){const v=u.groupTotalsFormatter;g=v?v(a,u,o):""}else b&&(g=b(0,0,g,u,a,o));f.innerText=g||"",r.append(f)});return r}print(t,n,o){this.clientId=n,this.clientName=o;const r=window.open(),i=document.createElement("title");i.innerText=t.name||t.id;const a=r.document.querySelector("head");a.append(i),a.append(this.createStyleElement()),r.document.querySelector("body").append(this.createTableElement(t)),r.print()}}function HN(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class zN{constructor(t){this.downloadManager=new AS,this.filter=new DI,this.hotKeysBehavior=new FS,this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new cv;const{downloadManager:n,filter:o,hotKeys:r,id:i,name:a,printer:l,totalCalculator:d}=t;this.id=i,this.name=a||"",n&&(this.downloadManager=n),o&&(this.filter=o),r&&(this.hotKeysBehavior=r),l&&(this.printer=l),d&&(this.totalCalculator=d)}createGrid(t,n,o){this.reset();const r=new TN(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(Xp(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){HN(`#${this.id}`)||this.hotKeysBehavior.handleKeyboardEvent(t,this)}get grid(){return this._grid}get grouping(){return this._grouping}get isEdited(){return this._isEdited}set grid(t){this._grid=t}set grouping(t){if(this._grouping={...this._grouping,...t},!this.grid)return;const n=this.grid.getData();this.grouping.isGrouped?n.setGrouping(this.grouping.groups||[]):n.setGrouping([])}set isEdited(t){this._isEdited=t,this.notifyObservers()}set printer(t){this._printer=t}get printer(){return this._printer}get isActive(){return this._isActive}set isActive(t){this._isActive=t}get lastActiveSell(){return this._lastActiveCell}set lastActiveSell(t){this._lastActiveCell=t}resizeCanvas(){console.log(""),this.grid?.resizeCanvas()}registerObservers(t){~this._observers.indexOf(t)||this._observers.push(t)}notifyObservers(){for(const t of this._observers)t(this)}deleteObserver(t){const n=this._observers.indexOf(t);this._observers.splice(n,1)}reset(){this.grid?.onKeyDown.unsubscribe(Xp(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class YN extends Qu{constructor(){super(...arguments),this.x=0,this.y=0}}const Cn=new YN,UN=e=>{const t=e.getLength()-1;return e.getItem(t)},dv=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},uv=()=>{sv.commitCurrentEdit()},hv=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t};function fv(e){return function(t){t.preventDefault(),uv(),Cn.table=e,Cn.x=t.pageX||0,Cn.y=t.pageY||0,Cn.notify()}}class qN extends Qu{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const ri=new qN,GN=e=>{function t(){if(e.id!==ri.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,ri.activeTable=e,ri.notify()}We.useEffect(()=>{ri.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{ri.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},KN=e=>{const[t,n]=We.useState(XN(e));return We.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function XN(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function ZN(e){We.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=_m(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const QN=e=>{We.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},Xp=e=>t=>{t.keyCode===Sm.KeyEnter&&(t.stopImmediatePropagation(),e.navigateNext())},JN=e=>(t,n)=>{const{grid:o,item:r}=n;r.isEdited=!0,o.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(o)},eA=e=>(t,n)=>{e.invalidateRows(n.rows),e.render()},tA=e=>()=>{const t=e.grid;t&&(t.updateRowCount(),t.render())},nA=e=>{if(!e)return 0;if(typeof e=="number")return e;const t=e.replace(/\$|,|\s/g,""),n=t.replace(/\(|\)/g,"");return isNaN(Number(n))?0:t.startsWith("(")&&t.endsWith(")")?0-Number(n):Number(t)},Dr=function(){const e=function(x,S,C,D){for(C=C||{},D=x.length;D--;C[x[D]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],w=[5,6,7,8,9,10,11,12,14],b=[5,6,7,14],g=[5,6,7,8,9,14],v={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"^":10,"!":11,"%":12,"(":13,")":14,NUMBER:15,E:16,PI:17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"^",11:"!",12:"%",13:"(",14:")",15:"NUMBER",16:"E",17:"PI"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,3],[4,1],[4,1],[4,1]],performAction:function(S,C,D,A,F,z,R){const $=z.length-1;switch(F){case 1:return z[$-1];case 2:this.$=z[$-2]+z[$];break;case 3:this.$=z[$-2]-z[$];break;case 4:this.$=z[$-2]*z[$];break;case 5:this.$=z[$-2]/z[$];break;case 6:this.$=Math.pow(z[$-2],z[$]);break;case 7:this.$=function K(X){return X==0?1:K(X-1)*X}(z[$-1]);break;case 8:this.$=z[$-1]/100;break;case 9:this.$=-z[$];break;case 10:this.$=z[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(w,[2,11]),e(w,[2,12]),e(w,[2,13]),{1:[2,1]},{4:18,7:t,13:n,15:o,16:r,17:i},{4:19,7:t,13:n,15:o,16:r,17:i},{4:20,7:t,13:n,15:o,16:r,17:i},{4:21,7:t,13:n,15:o,16:r,17:i},{4:22,7:t,13:n,15:o,16:r,17:i},e(w,[2,7]),e(w,[2,8]),e(w,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(b,[2,3],{8:d,9:u,10:f,11:p,12:y}),e(g,[2,4],{10:f,11:p,12:y}),e(g,[2,5],{10:f,11:p,12:y}),e([5,6,7,8,9,10,14],[2,6],{11:p,12:y}),e(w,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const D=new Error(S);throw D.hash=C,D}},parse:function(S){const C=this;let D=[0],A=[null],F=[];const z=this.table;let R="",$=0,K=0;const X=2,q=1,Y=F.slice.call(arguments,1),H=Object.create(this.lexer),ae={yy:{}};for(let ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ie)&&(ae.yy[ie]=this.yy[ie]);H.setInput(S,ae.yy),ae.yy.lexer=H,ae.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});let N=H.yylloc;F.push(N);const M=H.options&&H.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var V=function(){let ie;return ie=H.lex()||q,typeof ie!="number"&&(ie=C.symbols_[ie]||ie),ie};let W,ne,oe,se;const j={};let J,ee,te,ce;for(;;){if(ne=D[D.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((W===null||typeof W>"u")&&(W=V()),oe=z[ne]&&z[ne][W]),typeof oe>"u"||!oe.length||!oe[0]){let ie="";ce=[];for(J in z[ne])this.terminals_[J]&&J>X&&ce.push("'"+this.terminals_[J]+"'");H.showPosition?ie="Parse error on line "+($+1)+`:
|
|
308
308
|
`+H.showPosition()+`
|
|
309
309
|
Expecting `+ce.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ie="Parse error on line "+($+1)+": Unexpected "+(W==q?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ie,{text:H.match,token:this.terminals_[W]||W,line:H.yylineno,loc:N,expected:ce})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+W);switch(oe[0]){case 1:D.push(W),A.push(H.yytext),F.push(H.yylloc),D.push(oe[1]),W=null,K=H.yyleng,R=H.yytext,$=H.yylineno,N=H.yylloc;break;case 2:if(ee=this.productions_[oe[1]][1],j.$=A[A.length-ee],j._$={first_line:F[F.length-(ee||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(ee||1)].first_column,last_column:F[F.length-1].last_column},M&&(j._$.range=[F[F.length-(ee||1)].range[0],F[F.length-1].range[1]]),se=this.performAction.apply(j,[R,K,$,ae.yy,oe[1],A,F].concat(Y)),typeof se<"u")return se;ee&&(D=D.slice(0,-1*ee*2),A=A.slice(0,-1*ee),F=F.slice(0,-1*ee)),D.push(this.productions_[oe[1]][0]),A.push(j.$),F.push(j._$),te=z[D[D.length-2]][D[D.length-1]],D.push(te);break;case 3:return!0}}return!0}},T=function(){return{EOF:1,parseError:function(C,D){if(this.yy.parser)this.yy.parser.parseError(C,D);else throw new Error(C)},setInput:function(S,C){return this.yy=C||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){const S=this._input[0];return this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S,S.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},unput:function(S){const C=S.length,D=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;const A=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1&&(this.yylineno-=D.length-1);const F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===A.length?this.yylloc.first_column:0)+A[A.length-D.length].length-D[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
310
310
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(S){this.unput(this.match.slice(S))},pastInput:function(){const S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const S=this.pastInput(),C=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
|
@@ -313,15 +313,15 @@ Expecting `+ce.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ie="Parse error
|
|
|
313
313
|
* Pikaday
|
|
314
314
|
*
|
|
315
315
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
316
|
-
*/var sA=ol.exports,Zp;function iA(){return Zp||(Zp=1,function(e,t){(function(n,o){var r;{try{r=rA}catch{}e.exports=o(r)}})(sA,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,M,V,W){r?N.addEventListener(M,V,!!W):N.attachEvent("on"+M,V)},d=function(N,M,V,W){r?N.removeEventListener(M,V,!!W):N.detachEvent("on"+M,V)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,M){return(" "+N.className+" ").indexOf(" "+M+" ")!==-1},p=function(N,M){f(N,M)||(N.className=N.className===""?M:N.className+" "+M)},y=function(N,M){N.className=u((" "+N.className+" ").replace(" "+M+" "," "))},w=function(N){return/Array/.test(Object.prototype.toString.call(N))},b=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},g=function(N){var M=N.getDay();return M===0||M===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},T=function(N,M){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][M]},P=function(N){b(N)&&N.setHours(0,0,0,0)},x=function(N,M){return N.getTime()===M.getTime()},S=function(N,M,V){var W,ne;for(W in M)ne=N[W]!==void 0,ne&&typeof M[W]=="object"&&M[W]!==null&&M[W].nodeName===void 0?b(M[W])?V&&(N[W]=new Date(M[W].getTime())):w(M[W])?V&&(N[W]=M[W].slice(0)):N[W]=S({},M[W],V):(V||!ne)&&(N[W]=M[W]);return N},C=function(N,M,V){var W;i.createEvent?(W=i.createEvent("HTMLEvents"),W.initEvent(M,!0,!1),W=S(W,V),N.dispatchEvent(W)):i.createEventObject&&(W=i.createEventObject(),W=S(W,V),N.fireEvent("on"+M,W))},D=function(N){return N.month<0&&(N.year-=Math.ceil(Math.abs(N.month)/12),N.month+=12),N.month>11&&(N.year+=Math.floor(Math.abs(N.month)/12),N.month-=12),N},A={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(N,M,V){for(M+=N.firstDay;M>=7;)M-=7;return V?N.i18n.weekdaysShort[M]:N.i18n.weekdays[M]},z=function(N){var M=[],V="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&M.push("is-disabled"),N.isToday&&M.push("is-today"),N.isSelected&&(M.push("is-selected"),V="true"),N.hasEvent&&M.push("has-event"),N.isInRange&&M.push("is-inrange"),N.isStartRange&&M.push("is-startrange"),N.isEndRange&&M.push("is-endrange"),'<td data-day="'+N.day+'" class="'+M.join(" ")+'" aria-selected="'+V+'"><button class="pika-button pika-day" type="button" data-pika-year="'+N.year+'" data-pika-month="'+N.month+'" data-pika-day="'+N.day+'">'+N.day+"</button></td>"},R=function(N,M){N.setHours(0,0,0,0);var V=N.getDate(),W=N.getDay(),ne=M,oe=ne-1,se=7,j=function(ie){return(ie+se-1)%se};N.setDate(V+oe-j(W));var J=new Date(N.getFullYear(),0,ne),ee=24*60*60*1e3,te=(N.getTime()-J.getTime())/ee,ce=1+Math.round((te-oe+j(J.getDay()))/se);return ce},$=function(N,M,V,W){var ne=new Date(V,M,N),oe=o?n(ne).isoWeek():R(ne,W);return'<td class="pika-week">'+oe+"</td>"},K=function(N,M,V,W){return'<tr class="pika-row'+(V?" pick-whole-week":"")+(W?" is-selected":"")+'">'+(M?N.reverse():N).join("")+"</tr>"},X=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var M,V=[];for(N.showWeekNumber&&V.push("<th></th>"),M=0;M<7;M++)V.push('<th scope="col"><abbr title="'+F(N,M)+'">'+F(N,M,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?V.reverse():V).join("")+"</tr></thead>"},Y=function(N,M,V,W,ne,oe){var se,j,J,ee=N._o,te=V===ee.minYear,ce=V===ee.maxYear,ie='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,B,re=!0,Q=!0;for(J=[],se=0;se<12;se++)J.push('<option value="'+(V===ne?se-M:12+se-M)+'"'+(se===W?' selected="selected"':"")+(te&&se<ee.minMonth||ce&&se>ee.maxMonth?' disabled="disabled"':"")+">"+ee.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+ee.i18n.months[W]+'<select class="pika-select pika-select-month" tabindex="-1">'+J.join("")+"</select></div>",w(ee.yearRange)?(se=ee.yearRange[0],j=ee.yearRange[1]+1):(se=V-ee.yearRange,j=1+V+ee.yearRange),J=[];se<j&&se<=ee.maxYear;se++)se>=ee.minYear&&J.push('<option value="'+se+'"'+(se===V?' selected="selected"':"")+">"+se+"</option>");return B='<div class="pika-label">'+V+ee.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+J.join("")+"</select></div>",ee.showMonthAfterYear?ie+=B+he:ie+=he+B,te&&(W===0||ee.minMonth>=W)&&(re=!1),ce&&(W===11||ee.maxMonth<=W)&&(Q=!1),M===0&&(ie+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+ee.i18n.previousMonth+"</button>"),M===N._o.numberOfMonths-1&&(ie+='<button class="pika-next'+(Q?"":" is-disabled")+'" type="button">'+ee.i18n.nextMonth+"</button>"),ie+="</div>"},H=function(N,M,V){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+V+'">'+q(N)+X(M)+"</table>"},ae=function(N){var M=this,V=M.config(N);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),V.bound&&a(function(){M.hide(),V.blurFieldOnSelect&&V.field&&V.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:V.field&&V.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(V.parse)return V.parse(V.field.value,V.format);if(o){var ne=n(V.field.value,V.format,V.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(V.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===V.trigger)return;while(se=se.parentNode);M._v&&oe!==V.trigger&&se!==V.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(V.isRTL?" is-rtl":"")+(V.theme?" "+V.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),V.keyboardInput&&l(i,"keydown",M._onKeyChange),V.field&&(V.container?V.container.appendChild(M.el):V.bound?i.body.appendChild(M.el):V.field.parentNode.insertBefore(M.el,V.field.nextSibling),l(V.field,"change",M._onInputChange),V.defaultDate||(V.defaultDate=M._parseFieldValue(),V.setDefaultDate=!0));var W=V.defaultDate;b(W)?V.setDefaultDate?M.setDate(W,!0):M.gotoDate(W):M.gotoDate(new Date),V.bound?(this.hide(),M.el.className+=" is-bound",l(V.trigger,"click",M._onInputClick),l(V.trigger,"focus",M._onInputFocus),l(V.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var M=S(this._o,N,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var V=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=V>4?4:V,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var W=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||W,M.yearRange[1]=parseInt(M.yearRange[1],10)||W}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||A.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(N){return N=N||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,M){o&&n.isMoment(N)&&this.setDate(N.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(N,M){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!b(N)){var V=this._o.minDate,W=this._o.maxDate;b(V)&&N<V?N=V:b(W)&&N>W&&(N=W),this._d=new Date(N.getTime()),P(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var M=!0;if(b(N)){if(this.calendars){var V=new Date(this.calendars[0].year,this.calendars[0].month,1),W=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();W.setMonth(W.getMonth()+1),W.setDate(W.getDate()-1),M=ne<V.getTime()||W.getTime()<ne}M&&(this.calendars=[{month:N.getMonth(),year:N.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(N,M){var V=this.getDate()||new Date,W=parseInt(M)*24*60*60*1e3,ne;N==="add"?ne=new Date(V.valueOf()+W):N==="subtract"&&(ne=new Date(V.valueOf()-W)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=D(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=D({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(P(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(P(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var M=this._o,V=M.minYear,W=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=V&&(this._y=V,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=W&&(this._y=W,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var J=0;J<M.numberOfMonths;J++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,J,this.calendars[J].year,this.calendars[J].month,this.calendars[0].year,j)+this.render(this.calendars[J].year,this.calendars[J].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var N,M,V,W,ne,oe,se,j,J,ee,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,M=N,V=this.el.offsetWidth,W=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")ee=N.getBoundingClientRect(),j=ee.left+window.pageXOffset,J=ee.bottom+window.pageYOffset;else for(j=M.offsetLeft,J=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,J+=M.offsetTop;(this._o.reposition&&j+V>ne||this._o.position.indexOf("right")>-1&&j-V+N.offsetWidth>0)&&(j=j-V+N.offsetWidth,te=!1),(this._o.reposition&&J+W>oe+se||this._o.position.indexOf("top")>-1&&J-W-N.offsetHeight>0)&&(J=J-W-N.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=J+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(N,M,V){var W=this._o,ne=new Date,oe=T(N,M),se=new Date(N,M,1).getDay(),j=[],J=[];P(ne),W.firstDay>0&&(se-=W.firstDay,se<0&&(se+=7));for(var ee=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?N-1:N,ie=M===11?N+1:N,he=T(ce,ee),B=oe+se,re=B;re>7;)re-=7;B+=7-re;for(var Q=!1,fe=0,me=0;fe<B;fe++){var Ce=new Date(N,M,1+(fe-se)),ve=b(this._d)?x(Ce,this._d):!1,xe=x(Ce,ne),$e=W.events.indexOf(Ce.toDateString())!==-1,Ae=fe<se||fe>=oe+se,rt=1+(fe-se),Pe=M,ft=N,Kt=W.startRange&&x(W.startRange,Ce),st=W.endRange&&x(W.endRange,Ce),Yt=W.startRange&&W.endRange&&W.startRange<Ce&&Ce<W.endRange,Xt=W.minDate&&Ce<W.minDate||W.maxDate&&Ce>W.maxDate||W.disableWeekends&&g(Ce)||W.disableDayFn&&W.disableDayFn(Ce);Ae&&(fe<se?(rt=he+rt,Pe=ee,ft=ce):(rt=rt-oe,Pe=te,ft=ie));var on={day:rt,month:Pe,year:ft,hasEvent:$e,isSelected:ve,isToday:xe,isDisabled:Xt,isEmpty:Ae,isStartRange:Kt,isEndRange:st,isInRange:Yt,showDaysInNextAndPreviousMonths:W.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:W.enableSelectionDaysInNextAndPreviousMonths};W.pickWholeWeek&&ve&&(Q=!0),J.push(z(on)),++me===7&&(W.showWeekNumber&&J.unshift($(fe-se,M,N,W.firstWeekOfYearMinDays)),j.push(K(J,W.isRTL,W.pickWholeWeek,Q)),J=[],me=0,Q=!1)}return H(W,j,V)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var N=this._v;N!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,N!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var N=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),N.keyboardInput&&d(i,"keydown",this._onKeyChange),N.field&&(d(N.field,"change",this._onInputChange),N.bound&&(d(N.trigger,"click",this._onInputClick),d(N.trigger,"focus",this._onInputFocus),d(N.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(ol)),ol.exports}iA();function aA(e){return`(${lA(e)})`}function lA(e){return e.replace("-","")}function cA(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),T=`${n}${v}`,P=p?`-${T}`:T,x=p&&a?aA(P):P;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}const dA=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${cA(n)}`:""};function uA(e){if(!e.getSelectionModel())return Qp(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Qp(e)),t}function Qp(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var cc=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(cc||{});function md(){return JSON.parse(localStorage.getItem(cc.slickTable)||"{}")}function gd(e){return e[cc.sorting]||{}}function Jp(e,t){localStorage.setItem(cc.slickTable,JSON.stringify({...e,sorting:t}))}class hA{getTableSorting(t){const n=md();return gd(n)[t]}resetTableSorting(t){const n=md(),o=gd(n);delete o[t],Jp(n,o)}setTableSorting(t,n,o){const r=md(),i=gd(r);i[t]={columnId:n,isAscending:o},Jp(r,i)}}const yd=new hA;class fA{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=us(t||this.emptyValue),r=us(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const pA=new fA;class mv{constructor(){this.sort=pA,this.withFormatter=[jo.TEXT,jo.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,yd.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,yd.setTableSorting(t,u,d));const g=d?-1:1,v=b.getGrouping(),T=v.find(({getter:P})=>P===f.id);if(T){if(r||(r=v.map(({comparer:P})=>P)),o){const P=b.getGrouping(),x=P.findIndex(({getter:S})=>S===f.id);P[x].comparer=r[x],b.refresh();return}T.comparer=(P,x)=>{let S=P.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(P,x)||this.compare(S,C,g,y)}}else{const P=b.getItems(),x=b.getIdPropertyName();P.sort((S,C)=>{if(o)return S[x]-C[x];let D=S[p],A=C[p];return w&&this.withFormatter.includes(y)&&(D=w(0,0,D,f,S,l),A=w(0,0,A,f,C,l)),this.priority(S,C)||this.compare(D,A,g,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=yd.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case jo.DATE:return this.sort.dates(t,n)*o;case jo.NUMBER:case jo.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case jo.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const mA=new mv;class gA{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function yA(e){const{columnId:t,table:n}=wn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?ur.highlightColumn(n,t):ur.resetColumn(n,t))}const Zo=_m(yA);function gv(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const yv="portal-container";le(Ls)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"});le(Ls)({visibility:"hidden",color:"#1E456F",backgroundColor:"#FFFFFF",borderRadius:"5px",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0});const Ps={1:"",2:""},oo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function vA(e){switch(e){case sn.Boolean:return Ve.Boolean;case sn.Date:return Ve.DateEqual;case sn.MultipleSelect:return Ve.MultipleSelect;case sn.Number:case sn.NumberFormatted:return Ve.NumberEqual;case sn.Text:return Ve.TextContain}}function bA(e,t,n){He.useEffect(()=>{if(!e)return;const o=document.getElementById(yv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=wn;if(!a?.grid)return;const f=a.filter.args;gv(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||vA(i),b=y||Ps;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function wA(e){He.useEffect(()=>{function t(){e(!0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}function qd(e){return{format:Ir.ui,value:e?_e(e,$R):null}}const CA=le(cs)({width:"5em",alignSelf:"flex-end"}),SA={Button:CA},_A=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=wn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,ur.resetColumn(i,r),t(Ps),e(!1)}return O.jsx(SA.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},xA=le(zu)({padding:0}),RA=le(Wy)({margin:"0.5em 0 0 1em"}),Wa={Checkbox:xA,FormGroup:RA},TA=({setValue:e,value:t})=>{function n(o){e(o),Zo(o)}return O.jsxs(Wa.FormGroup,{children:[O.jsx(el,{control:O.jsx(Wa.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),O.jsx(el,{control:O.jsx(Wa.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),O.jsx(el,{control:O.jsx(Wa.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},kA={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},EA={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},em=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
316
|
+
*/var sA=ol.exports,Zp;function iA(){return Zp||(Zp=1,function(e,t){(function(n,o){var r;{try{r=rA}catch{}e.exports=o(r)}})(sA,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(N,M,V,W){r?N.addEventListener(M,V,!!W):N.attachEvent("on"+M,V)},d=function(N,M,V,W){r?N.removeEventListener(M,V,!!W):N.detachEvent("on"+M,V)},u=function(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")},f=function(N,M){return(" "+N.className+" ").indexOf(" "+M+" ")!==-1},p=function(N,M){f(N,M)||(N.className=N.className===""?M:N.className+" "+M)},y=function(N,M){N.className=u((" "+N.className+" ").replace(" "+M+" "," "))},w=function(N){return/Array/.test(Object.prototype.toString.call(N))},b=function(N){return/Date/.test(Object.prototype.toString.call(N))&&!isNaN(N.getTime())},g=function(N){var M=N.getDay();return M===0||M===6},v=function(N){return N%4===0&&N%100!==0||N%400===0},T=function(N,M){return[31,v(N)?29:28,31,30,31,30,31,31,30,31,30,31][M]},P=function(N){b(N)&&N.setHours(0,0,0,0)},x=function(N,M){return N.getTime()===M.getTime()},S=function(N,M,V){var W,ne;for(W in M)ne=N[W]!==void 0,ne&&typeof M[W]=="object"&&M[W]!==null&&M[W].nodeName===void 0?b(M[W])?V&&(N[W]=new Date(M[W].getTime())):w(M[W])?V&&(N[W]=M[W].slice(0)):N[W]=S({},M[W],V):(V||!ne)&&(N[W]=M[W]);return N},C=function(N,M,V){var W;i.createEvent?(W=i.createEvent("HTMLEvents"),W.initEvent(M,!0,!1),W=S(W,V),N.dispatchEvent(W)):i.createEventObject&&(W=i.createEventObject(),W=S(W,V),N.fireEvent("on"+M,W))},D=function(N){return N.month<0&&(N.year-=Math.ceil(Math.abs(N.month)/12),N.month+=12),N.month>11&&(N.year+=Math.floor(Math.abs(N.month)/12),N.month-=12),N},A={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(N,M,V){for(M+=N.firstDay;M>=7;)M-=7;return V?N.i18n.weekdaysShort[M]:N.i18n.weekdays[M]},z=function(N){var M=[],V="false";if(N.isEmpty)if(N.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),N.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return N.isDisabled&&M.push("is-disabled"),N.isToday&&M.push("is-today"),N.isSelected&&(M.push("is-selected"),V="true"),N.hasEvent&&M.push("has-event"),N.isInRange&&M.push("is-inrange"),N.isStartRange&&M.push("is-startrange"),N.isEndRange&&M.push("is-endrange"),'<td data-day="'+N.day+'" class="'+M.join(" ")+'" aria-selected="'+V+'"><button class="pika-button pika-day" type="button" data-pika-year="'+N.year+'" data-pika-month="'+N.month+'" data-pika-day="'+N.day+'">'+N.day+"</button></td>"},R=function(N,M){N.setHours(0,0,0,0);var V=N.getDate(),W=N.getDay(),ne=M,oe=ne-1,se=7,j=function(ie){return(ie+se-1)%se};N.setDate(V+oe-j(W));var J=new Date(N.getFullYear(),0,ne),ee=24*60*60*1e3,te=(N.getTime()-J.getTime())/ee,ce=1+Math.round((te-oe+j(J.getDay()))/se);return ce},$=function(N,M,V,W){var ne=new Date(V,M,N),oe=o?n(ne).isoWeek():R(ne,W);return'<td class="pika-week">'+oe+"</td>"},K=function(N,M,V,W){return'<tr class="pika-row'+(V?" pick-whole-week":"")+(W?" is-selected":"")+'">'+(M?N.reverse():N).join("")+"</tr>"},X=function(N){return"<tbody>"+N.join("")+"</tbody>"},q=function(N){var M,V=[];for(N.showWeekNumber&&V.push("<th></th>"),M=0;M<7;M++)V.push('<th scope="col"><abbr title="'+F(N,M)+'">'+F(N,M,!0)+"</abbr></th>");return"<thead><tr>"+(N.isRTL?V.reverse():V).join("")+"</tr></thead>"},Y=function(N,M,V,W,ne,oe){var se,j,J,ee=N._o,te=V===ee.minYear,ce=V===ee.maxYear,ie='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,B,re=!0,Q=!0;for(J=[],se=0;se<12;se++)J.push('<option value="'+(V===ne?se-M:12+se-M)+'"'+(se===W?' selected="selected"':"")+(te&&se<ee.minMonth||ce&&se>ee.maxMonth?' disabled="disabled"':"")+">"+ee.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+ee.i18n.months[W]+'<select class="pika-select pika-select-month" tabindex="-1">'+J.join("")+"</select></div>",w(ee.yearRange)?(se=ee.yearRange[0],j=ee.yearRange[1]+1):(se=V-ee.yearRange,j=1+V+ee.yearRange),J=[];se<j&&se<=ee.maxYear;se++)se>=ee.minYear&&J.push('<option value="'+se+'"'+(se===V?' selected="selected"':"")+">"+se+"</option>");return B='<div class="pika-label">'+V+ee.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+J.join("")+"</select></div>",ee.showMonthAfterYear?ie+=B+he:ie+=he+B,te&&(W===0||ee.minMonth>=W)&&(re=!1),ce&&(W===11||ee.maxMonth<=W)&&(Q=!1),M===0&&(ie+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+ee.i18n.previousMonth+"</button>"),M===N._o.numberOfMonths-1&&(ie+='<button class="pika-next'+(Q?"":" is-disabled")+'" type="button">'+ee.i18n.nextMonth+"</button>"),ie+="</div>"},H=function(N,M,V){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+V+'">'+q(N)+X(M)+"</table>"},ae=function(N){var M=this,V=M.config(N);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),V.bound&&a(function(){M.hide(),V.blurFieldOnSelect&&V.field&&V.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:V.field&&V.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(V.parse)return V.parse(V.field.value,V.format);if(o){var ne=n(V.field.value,V.format,V.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(V.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===V.trigger)return;while(se=se.parentNode);M._v&&oe!==V.trigger&&se!==V.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(V.isRTL?" is-rtl":"")+(V.theme?" "+V.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),V.keyboardInput&&l(i,"keydown",M._onKeyChange),V.field&&(V.container?V.container.appendChild(M.el):V.bound?i.body.appendChild(M.el):V.field.parentNode.insertBefore(M.el,V.field.nextSibling),l(V.field,"change",M._onInputChange),V.defaultDate||(V.defaultDate=M._parseFieldValue(),V.setDefaultDate=!0));var W=V.defaultDate;b(W)?V.setDefaultDate?M.setDate(W,!0):M.gotoDate(W):M.gotoDate(new Date),V.bound?(this.hide(),M.el.className+=" is-bound",l(V.trigger,"click",M._onInputClick),l(V.trigger,"focus",M._onInputFocus),l(V.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(N){this._o||(this._o=S({},A,!0));var M=S(this._o,N,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var V=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=V>4?4:V,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var W=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||W,M.yearRange[1]=parseInt(M.yearRange[1],10)||W}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||A.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(N){return N=N||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,N):o?n(this._d).format(N):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(N,M){o&&n.isMoment(N)&&this.setDate(N.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(N,M){if(!N)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof N=="string"&&(N=new Date(Date.parse(N))),!!b(N)){var V=this._o.minDate,W=this._o.maxDate;b(V)&&N<V?N=V:b(W)&&N>W&&(N=W),this._d=new Date(N.getTime()),P(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(N){var M=!0;if(b(N)){if(this.calendars){var V=new Date(this.calendars[0].year,this.calendars[0].month,1),W=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=N.getTime();W.setMonth(W.getMonth()+1),W.setDate(W.getDate()-1),M=ne<V.getTime()||W.getTime()<ne}M&&(this.calendars=[{month:N.getMonth(),year:N.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(N,M){var V=this.getDate()||new Date,W=parseInt(M)*24*60*60*1e3,ne;N==="add"?ne=new Date(V.valueOf()+W):N==="subtract"&&(ne=new Date(V.valueOf()-W)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=D(this.calendars[0]);for(var N=1;N<this._o.numberOfMonths;N++)this.calendars[N]=D({month:this.calendars[0].month+N,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(N){isNaN(N)||(this.calendars[0].month=parseInt(N,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(N){isNaN(N)||(this.calendars[0].year=parseInt(N,10),this.adjustCalendars())},setMinDate:function(N){N instanceof Date?(P(N),this._o.minDate=N,this._o.minYear=N.getFullYear(),this._o.minMonth=N.getMonth()):(this._o.minDate=A.minDate,this._o.minYear=A.minYear,this._o.minMonth=A.minMonth,this._o.startRange=A.startRange),this.draw()},setMaxDate:function(N){N instanceof Date?(P(N),this._o.maxDate=N,this._o.maxYear=N.getFullYear(),this._o.maxMonth=N.getMonth()):(this._o.maxDate=A.maxDate,this._o.maxYear=A.maxYear,this._o.maxMonth=A.maxMonth,this._o.endRange=A.endRange),this.draw()},setStartRange:function(N){this._o.startRange=N},setEndRange:function(N){this._o.endRange=N},draw:function(N){if(!(!this._v&&!N)){var M=this._o,V=M.minYear,W=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=V&&(this._y=V,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=W&&(this._y=W,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var J=0;J<M.numberOfMonths;J++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,J,this.calendars[J].year,this.calendars[J].month,this.calendars[0].year,j)+this.render(this.calendars[J].year,this.calendars[J].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var N,M,V,W,ne,oe,se,j,J,ee,te,ce;if(!this._o.container){if(this.el.style.position="absolute",N=this._o.trigger,M=N,V=this.el.offsetWidth,W=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof N.getBoundingClientRect=="function")ee=N.getBoundingClientRect(),j=ee.left+window.pageXOffset,J=ee.bottom+window.pageYOffset;else for(j=M.offsetLeft,J=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,J+=M.offsetTop;(this._o.reposition&&j+V>ne||this._o.position.indexOf("right")>-1&&j-V+N.offsetWidth>0)&&(j=j-V+N.offsetWidth,te=!1),(this._o.reposition&&J+W>oe+se||this._o.position.indexOf("top")>-1&&J-W-N.offsetHeight>0)&&(J=J-W-N.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=J+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(N,M,V){var W=this._o,ne=new Date,oe=T(N,M),se=new Date(N,M,1).getDay(),j=[],J=[];P(ne),W.firstDay>0&&(se-=W.firstDay,se<0&&(se+=7));for(var ee=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?N-1:N,ie=M===11?N+1:N,he=T(ce,ee),B=oe+se,re=B;re>7;)re-=7;B+=7-re;for(var Q=!1,fe=0,me=0;fe<B;fe++){var Ce=new Date(N,M,1+(fe-se)),ve=b(this._d)?x(Ce,this._d):!1,xe=x(Ce,ne),$e=W.events.indexOf(Ce.toDateString())!==-1,Ae=fe<se||fe>=oe+se,rt=1+(fe-se),Pe=M,ft=N,Kt=W.startRange&&x(W.startRange,Ce),st=W.endRange&&x(W.endRange,Ce),Yt=W.startRange&&W.endRange&&W.startRange<Ce&&Ce<W.endRange,Xt=W.minDate&&Ce<W.minDate||W.maxDate&&Ce>W.maxDate||W.disableWeekends&&g(Ce)||W.disableDayFn&&W.disableDayFn(Ce);Ae&&(fe<se?(rt=he+rt,Pe=ee,ft=ce):(rt=rt-oe,Pe=te,ft=ie));var on={day:rt,month:Pe,year:ft,hasEvent:$e,isSelected:ve,isToday:xe,isDisabled:Xt,isEmpty:Ae,isStartRange:Kt,isEndRange:st,isInRange:Yt,showDaysInNextAndPreviousMonths:W.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:W.enableSelectionDaysInNextAndPreviousMonths};W.pickWholeWeek&&ve&&(Q=!0),J.push(z(on)),++me===7&&(W.showWeekNumber&&J.unshift($(fe-se,M,N,W.firstWeekOfYearMinDays)),j.push(K(J,W.isRTL,W.pickWholeWeek,Q)),J=[],me=0,Q=!1)}return H(W,j,V)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var N=this._v;N!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,N!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var N=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),N.keyboardInput&&d(i,"keydown",this._onKeyChange),N.field&&(d(N.field,"change",this._onInputChange),N.bound&&(d(N.trigger,"click",this._onInputClick),d(N.trigger,"focus",this._onInputFocus),d(N.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(ol)),ol.exports}iA();function aA(e){return`(${lA(e)})`}function lA(e){return e.replace("-","")}function cA(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),T=`${n}${v}`,P=p?`-${T}`:T,x=p&&a?aA(P):P;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}const dA=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${cA(n)}`:""};function uA(e){if(!e.getSelectionModel())return Qp(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Qp(e)),t}function Qp(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var cc=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(cc||{});function md(){return JSON.parse(localStorage.getItem(cc.slickTable)||"{}")}function gd(e){return e[cc.sorting]||{}}function Jp(e,t){localStorage.setItem(cc.slickTable,JSON.stringify({...e,sorting:t}))}class hA{getTableSorting(t){const n=md();return gd(n)[t]}resetTableSorting(t){const n=md(),o=gd(n);delete o[t],Jp(n,o)}setTableSorting(t,n,o){const r=md(),i=gd(r);i[t]={columnId:n,isAscending:o},Jp(r,i)}}const yd=new hA;class fA{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=us(t||this.emptyValue),r=us(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const pA=new fA;class mv{constructor(){this.sort=pA,this.withFormatter=[jo.TEXT,jo.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,yd.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,yd.setTableSorting(t,u,d));const g=d?-1:1,v=b.getGrouping(),T=v.find(({getter:P})=>P===f.id);if(T){if(r||(r=v.map(({comparer:P})=>P)),o){const P=b.getGrouping(),x=P.findIndex(({getter:S})=>S===f.id);P[x].comparer=r[x],b.refresh();return}T.comparer=(P,x)=>{let S=P.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(P,x)||this.compare(S,C,g,y)}}else{const P=b.getItems(),x=b.getIdPropertyName();P.sort((S,C)=>{if(o)return S[x]-C[x];let D=S[p],A=C[p];return w&&this.withFormatter.includes(y)&&(D=w(0,0,D,f,S,l),A=w(0,0,A,f,C,l)),this.priority(S,C)||this.compare(D,A,g,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=yd.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case jo.DATE:return this.sort.dates(t,n)*o;case jo.NUMBER:case jo.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case jo.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const mA=new mv;class gA{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function yA(e){const{columnId:t,table:n}=wn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?ur.highlightColumn(n,t):ur.resetColumn(n,t))}const Zo=_m(yA);function gv(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const yv="portal-container";le(Ls)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"});le(Ls)({visibility:"hidden",color:"#1E456F",backgroundColor:"#FFFFFF",borderRadius:"5px",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0});const Ps={1:"",2:""},oo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function vA(e){switch(e){case sn.Boolean:return Ve.Boolean;case sn.Date:return Ve.DateEqual;case sn.MultipleSelect:return Ve.MultipleSelect;case sn.Number:case sn.NumberFormatted:return Ve.NumberEqual;case sn.Text:return Ve.TextContain}}function bA(e,t,n){We.useEffect(()=>{if(!e)return;const o=document.getElementById(yv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=wn;if(!a?.grid)return;const f=a.filter.args;gv(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||vA(i),b=y||Ps;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function wA(e){We.useEffect(()=>{function t(){e(!0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}function qd(e){return{format:Ir.ui,value:e?_e(e,$R):null}}const CA=le(cs)({width:"5em",alignSelf:"flex-end"}),SA={Button:CA},_A=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=wn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,ur.resetColumn(i,r),t(Ps),e(!1)}return O.jsx(SA.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},xA=le(zu)({padding:0}),RA=le(Wy)({margin:"0.5em 0 0 1em"}),Wa={Checkbox:xA,FormGroup:RA},TA=({setValue:e,value:t})=>{function n(o){e(o),Zo(o)}return O.jsxs(Wa.FormGroup,{children:[O.jsx(el,{control:O.jsx(Wa.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),O.jsx(el,{control:O.jsx(Wa.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),O.jsx(el,{control:O.jsx(Wa.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},kA={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},EA={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},em=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
317
317
|
`);class vv{constructor({locale:t,formats:n,instance:o}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=kA,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=r=>{const i=this.moment(r).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=r=>{const i=this.moment.utc(r);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(r,i)=>{if(!this.hasTimezonePlugin())throw new Error(em);const a=i==="default"?this.moment(r):this.moment.tz(r,i);return this.locale===void 0?a:a.locale(this.locale)},this.date=(r,i="default")=>r===null?null:i==="UTC"?this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(r):this.createTZDate(r,i),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=r=>{const i=r._z?.name,a=r.isUTC()?"UTC":"system";return i??this.moment.defaultZone?.name??a},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC")return r.clone().utc();if(i==="system")return r.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(em);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const l=r.clone();return l.tz(a),l},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.locale?this.moment(r,i,this.locale,!0):this.moment(r,i,!0),this.getCurrentLocaleCode=()=>this.locale||_e.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(_e.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=r=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return r.match(i).map(a=>{const l=a[0];return l==="L"||l===";"?_e.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>{const a=r.clone();return a.locale(this.getCurrentLocaleCode()),a.format(i)},this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.isSame(i),this.isSameYear=(r,i)=>r.isSame(i,"year"),this.isSameMonth=(r,i)=>r.isSame(i,"month"),this.isSameDay=(r,i)=>r.isSame(i,"day"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r.isAfter(i),this.isAfterYear=(r,i)=>r.isAfter(i,"year"),this.isAfterDay=(r,i)=>r.isAfter(i,"day"),this.isBefore=(r,i)=>r.isBefore(i),this.isBeforeYear=(r,i)=>r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r.isBetween(i,a,null,"[]"),this.startOfYear=r=>r.clone().startOf("year"),this.startOfMonth=r=>r.clone().startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r.clone()).startOf("week"),this.startOfDay=r=>r.clone().startOf("day"),this.endOfYear=r=>r.clone().endOf("year"),this.endOfMonth=r=>r.clone().endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r.clone()).endOf("week"),this.endOfDay=r=>r.clone().endOf("day"),this.addYears=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"years"):r.clone().add(i,"years"),this.addMonths=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"months"):r.clone().add(i,"months"),this.addWeeks=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"weeks"):r.clone().add(i,"weeks"),this.addDays=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"days"):r.clone().add(i,"days"),this.addHours=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"hours"):r.clone().add(i,"hours"),this.addMinutes=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"minutes"):r.clone().add(i,"minutes"),this.addSeconds=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"seconds"):r.clone().add(i,"seconds"),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month"),this.getDate=r=>r.get("date"),this.getHours=r=>r.get("hours"),this.getMinutes=r=>r.get("minutes"),this.getSeconds=r=>r.get("seconds"),this.getMilliseconds=r=>r.get("milliseconds"),this.setYear=(r,i)=>r.clone().year(i),this.setMonth=(r,i)=>r.clone().month(i),this.setDate=(r,i)=>r.clone().date(i),this.setHours=(r,i)=>r.clone().hours(i),this.setMinutes=(r,i)=>r.clone().minutes(i),this.setSeconds=(r,i)=>r.clone().seconds(i),this.setMilliseconds=(r,i)=>r.clone().milliseconds(i),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let l=0,d=i;const u=[];for(;d.isBefore(a);){const f=Math.floor(l/7);u[f]=u[f]||[],u[f].push(d),d=this.addDays(d,1),l+=1}return u},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||_e,this.locale=t,this.formats=Z({},EA,n)}getYearRange([t,n]){const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}const si=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),PA=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},Cl=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},_i=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=Cl(a,a.date(void 0,l),e);n&&a.isBefore(r,d)&&(r=d),t&&a.isAfter(o,d)&&(o=d);let u=e,f=e;for(a.isBefore(e,r)&&(u=r,f=null),a.isAfter(e,o)&&(f&&(f=o),u=null);u||f;){if(u&&a.isAfter(u,o)&&(u=null),f&&a.isBefore(f,r)&&(f=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(f){if(!i(f))return f;f=a.addDays(f,-1)}}return null},DA=(e,t)=>t==null||!e.isValid(t)?null:t,Xn=(e,t,n)=>t==null||!e.isValid(t)?n:t,OA=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),th=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},bv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),MA=["year","month","day"],tm=e=>MA.includes(e),nh=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return si(n,["year"])?r.year:si(n,["month"])?r.month:si(n,["day"])?r.dayOfMonth:si(n,["month","year"])?`${r.month} ${r.year}`:si(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},IA=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},NA=["hours","minutes","seconds"],AA=e=>NA.includes(e),nm=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),FA=(e,t)=>(n,o)=>e?t.isAfter(n,o):nm(n,t)>nm(o,t),vo={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},LA=e=>Math.max(...e.map(t=>vo[t.type]??1)),ii=(e,t,n)=>{if(t===vo.year)return e.startOfYear(n);if(t===vo.month)return e.startOfMonth(n);if(t===vo.day)return e.startOfDay(n);let o=n;return t<vo.minutes&&(o=e.setMinutes(o,0)),t<vo.seconds&&(o=e.setSeconds(o,0)),t<vo.milliseconds&&(o=e.setMilliseconds(o,0)),o},$A=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():ii(t,n,bv(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=ii(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=ii(t,n,e.maxDate));const a=FA(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=ii(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Cl(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=ii(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Cl(t,i,e.maxTime))),i},oh=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
318
318
|
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},VA=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},dc=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},wv=(e,t,n,o)=>{switch(n){case"month":return th(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return dc(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},om="s",jA=["0","1","2","3","4","5","6","7","8","9"],WA=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),om)==="0"?jA:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),om))},Fr=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},rh=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),rm=(e,t)=>{const n=Fr(e,t);return n!==" "&&!Number.isNaN(Number(n))},Cv=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Sv=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
|
|
319
319
|
This type of format is only supported for 'day' sections`].join(`
|
|
320
|
-
`));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=Cv(i,r.maxLength)),rh(i,o)},BA=(e,t,n,o,r,i,a,l)=>{const d=VA(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const b=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=x=>Sv(e,x,b,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let P=parseInt(Fr(n.value,i),10)+d*v;if(p){if(n.type==="year"&&!f&&!u)return e.formatByString(e.date(void 0,t),n.format);d>0||u?P=b.minimum:P=b.maximum}return P%v!==0&&((d<0||u)&&(P+=v-(v+P)%v),(d>0||f)&&(P-=P%v)),P>b.maximum?g(b.minimum+(P-b.maximum-1)%(b.maximum-b.minimum+1)):P<b.minimum?g(b.maximum-(b.minimum-P-1)%(b.maximum-b.minimum+1)):g(P)},w=()=>{const b=wv(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return d>0||u?b[0]:b[b.length-1];const T=((b.indexOf(n.value)+d)%b.length+b.length)%b.length;return b[T]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():w()},sh=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Fr(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},sm=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&oh(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},_v=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,xv=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return _v(e,o)?e.formatByString(e.setYear(r,1),o)==="0001":e.formatByString(e.setYear(r,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},HA=(e,t,n)=>{const o=t.some(d=>d.type==="day"),r=[],i=[];for(let d=0;d<t.length;d+=1){const u=t[d];o&&u.type==="weekDay"||(r.push(u.format),i.push(sh(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},zA=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),YA=(e,t,n)=>{const r=e.map(i=>{const a=sh(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},UA=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=th(e,o).reduce((d,u)=>{const f=e.getDaysInMonth(u);return f>d.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:d},{maxDaysInMonth:0,longestMonth:null});return{year:({format:d})=>({minimum:0,maximum:_v(e,d)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:d})=>({minimum:1,maximum:d!=null&&e.isValid(d)?e.getDaysInMonth(d):a,longestMonth:l}),weekDay:({format:d,contentType:u})=>{if(u==="digit"){const f=dc(e,d).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:d})=>{const u=e.getHours(i);return Fr(e.formatByString(e.endOfDay(o),d),t)!==u.toString()?{minimum:1,maximum:Number(Fr(e.formatByString(e.startOfDay(o),d),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let im=!1;const am=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!im){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),im=!0)}},qA=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{const r=dc(e,t.format),i=e.formatByString(n,t.format),a=r.indexOf(i),d=r.indexOf(t.value)-a;return e.addDays(n,d)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},lm={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},cm=(e,t,n,o,r)=>[...n].sort((i,a)=>lm[i.type]-lm[a.type]).reduce((i,a)=>!r||a.modified?qA(e,a,t,i):i,o),GA=()=>navigator.userAgent.toLowerCase().includes("android"),KA=(e,t)=>{const n={};if(!t)return e.forEach((d,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((d,u)=>u>=i&&d.endSeparator?.includes(" ")&&d.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let d=a;d>=i;d-=1)r[d]=l,o[l]=d,l-=1;i=a+1}return e.forEach((d,u)=>{const f=r[u],p=f===0?null:o[f-1],y=f===e.length-1?null:o[f+1];n[u]={leftIndex:p,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},Gd=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,XA=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},ZA=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},QA=["value","referenceDate"],ko={emptyValue:null,getTodayValue:bv,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=
|
|
320
|
+
`));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=Cv(i,r.maxLength)),rh(i,o)},BA=(e,t,n,o,r,i,a,l)=>{const d=VA(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const b=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=x=>Sv(e,x,b,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let P=parseInt(Fr(n.value,i),10)+d*v;if(p){if(n.type==="year"&&!f&&!u)return e.formatByString(e.date(void 0,t),n.format);d>0||u?P=b.minimum:P=b.maximum}return P%v!==0&&((d<0||u)&&(P+=v-(v+P)%v),(d>0||f)&&(P-=P%v)),P>b.maximum?g(b.minimum+(P-b.maximum-1)%(b.maximum-b.minimum+1)):P<b.minimum?g(b.maximum-(b.minimum-P-1)%(b.maximum-b.minimum+1)):g(P)},w=()=>{const b=wv(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return d>0||u?b[0]:b[b.length-1];const T=((b.indexOf(n.value)+d)%b.length+b.length)%b.length;return b[T]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():w()},sh=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Fr(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},sm=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&oh(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},_v=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,xv=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return _v(e,o)?e.formatByString(e.setYear(r,1),o)==="0001":e.formatByString(e.setYear(r,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},HA=(e,t,n)=>{const o=t.some(d=>d.type==="day"),r=[],i=[];for(let d=0;d<t.length;d+=1){const u=t[d];o&&u.type==="weekDay"||(r.push(u.format),i.push(sh(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},zA=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),YA=(e,t,n)=>{const r=e.map(i=>{const a=sh(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},UA=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=th(e,o).reduce((d,u)=>{const f=e.getDaysInMonth(u);return f>d.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:d},{maxDaysInMonth:0,longestMonth:null});return{year:({format:d})=>({minimum:0,maximum:_v(e,d)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:d})=>({minimum:1,maximum:d!=null&&e.isValid(d)?e.getDaysInMonth(d):a,longestMonth:l}),weekDay:({format:d,contentType:u})=>{if(u==="digit"){const f=dc(e,d).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:d})=>{const u=e.getHours(i);return Fr(e.formatByString(e.endOfDay(o),d),t)!==u.toString()?{minimum:1,maximum:Number(Fr(e.formatByString(e.startOfDay(o),d),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let im=!1;const am=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!im){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),im=!0)}},qA=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{const r=dc(e,t.format),i=e.formatByString(n,t.format),a=r.indexOf(i),d=r.indexOf(t.value)-a;return e.addDays(n,d)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},lm={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},cm=(e,t,n,o,r)=>[...n].sort((i,a)=>lm[i.type]-lm[a.type]).reduce((i,a)=>!r||a.modified?qA(e,a,t,i):i,o),GA=()=>navigator.userAgent.toLowerCase().includes("android"),KA=(e,t)=>{const n={};if(!t)return e.forEach((d,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((d,u)=>u>=i&&d.endSeparator?.includes(" ")&&d.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let d=a;d>=i;d-=1)r[d]=l,o[l]=d,l-=1;i=a+1}return e.forEach((d,u)=>{const f=r[u],p=f===0?null:o[f-1],y=f===e.length-1?null:o[f+1];n[u]={leftIndex:p,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},Gd=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,XA=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},ZA=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},QA=["value","referenceDate"],ko={emptyValue:null,getTodayValue:bv,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Be(e,QA);return t!=null&&o.utils.isValid(t)?t:n??$A(o)},cleanValue:DA,areValuesEqual:OA,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},JA={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o)=>!e.isValid(t)&&!!n?n:o(t),getV7HiddenInputValueFromSections:zA,getV6InputValueFromSections:YA,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},eF=["localeText"],Sl=k.createContext(null);process.env.NODE_ENV!=="production"&&(Sl.displayName="MuiPickersAdapterContext");const uc=function(t){const{localeText:n}=t,o=Be(t,eF),{utils:r,localeText:i}=k.useContext(Sl)??{utils:void 0,localeText:void 0},a=It({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:d,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:y}=a,w=k.useMemo(()=>Z({},y,i,n),[y,i,n]),b=k.useMemo(()=>{if(!d)return r||null;const T=new d({locale:p,formats:u,instance:f});if(!T.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
321
321
|
`));return T},[d,p,u,f,r]),g=k.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),v=k.useMemo(()=>({utils:b,defaultDates:g,localeText:w}),[g,b,w]);return O.jsx(Sl.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(uc.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const tF=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Z({},e)}}}}),Rv=e=>{const{utils:t,formatKey:n,contextTranslation:o,propsTranslation:r}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(r??o)(i,t,a)}},Tv={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,o)=>`Select ${e}. ${!o&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${o??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},nF=Tv;tF(Tv);const jr=()=>{const e=k.useContext(Sl);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
322
322
|
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
323
|
-
`));const t=k.useMemo(()=>Z({},nF,e.localeText),[e.localeText]);return k.useMemo(()=>Z({},e,{localeText:t}),[e,t])},Nt=()=>jr().utils,ha=()=>jr().defaultDates,hc=e=>{const t=Nt(),n=k.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function oF(e){return Oe("MuiPickersToolbar",e)}De("MuiPickersToolbar",["root","content"]);const rF=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],sF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},oF,t)},iF=le("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),aF=le("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),lF=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:a,hidden:l,titleId:d}=o,u=
|
|
323
|
+
`));const t=k.useMemo(()=>Z({},nF,e.localeText),[e.localeText]);return k.useMemo(()=>Z({},e,{localeText:t}),[e,t])},Nt=()=>jr().utils,ha=()=>jr().defaultDates,hc=e=>{const t=Nt(),n=k.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function oF(e){return Oe("MuiPickersToolbar",e)}De("MuiPickersToolbar",["root","content"]);const rF=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],sF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},oF,t)},iF=le("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),aF=le("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),lF=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:a,hidden:l,titleId:d}=o,u=Be(o,rF),f=o,p=sF(f);return l?null:O.jsxs(iF,Z({ref:n,className:Se(p.root,i),ownerState:f},u,{children:[O.jsx(Tn,{color:"text.secondary",variant:"overline",id:d,children:a}),O.jsx(aF,{className:p.content,ownerState:f,children:r})]}))}),er=()=>jr().localeText;function cF(e){return Oe("MuiDatePickerToolbar",e)}De("MuiDatePickerToolbar",["root","title"]);const dF=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],uF=e=>{const{classes:t}=e;return Ie({root:["root"],title:["title"]},cF,t)},hF=le(lF,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fF=le(Tn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),kv=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:l="––",views:d,className:u}=o,f=Be(o,dF),p=Nt(),y=er(),w=uF(o),b=k.useMemo(()=>{if(!r)return l;const v=nh(p,{format:a,views:d},!0);return p.formatByString(r,v)},[r,a,l,p,d]),g=o;return O.jsx(hF,Z({ref:n,toolbarTitle:y.datePickerToolbarTitle,isLandscape:i,className:Se(w.root,u)},f,{children:O.jsx(fF,{variant:"h4",align:i?"left":"center",ownerState:g,className:w.title,children:b})}))});process.env.NODE_ENV!=="production"&&(kv.propTypes={classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});function Ev(e,t){const n=Nt(),o=ha(),r=It({props:e,name:t}),i=k.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Z({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Z({},r,{localeText:i},PA({views:r.views,openTo:r.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate),slots:Z({toolbar:kv},r.slots)})}const fa=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:d}=e,u=o.utils.date(void 0,n),f=Xn(o.utils,e.minDate,o.defaultDates.minDate),p=Xn(o.utils,e.maxDate,o.defaultDates.maxDate);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(d&&o.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&o.utils.isBeforeDay(t,u)):return"disablePast";case!!(f&&o.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&o.utils.isAfterDay(t,p)):return"maxDate";default:return null}};fa.valueManager=ko;const Pv=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],pF=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],mF=["minDateTime","maxDateTime"],gF=[...Pv,...pF,...mF],Dv=e=>gF.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Ov(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=jr(),l=k.useRef(n.valueManager.defaultErrorState),d=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(d);k.useEffect(()=>{i&&!n.valueManager.isSameError(d,l.current)&&i(d,o),l.current=d},[n,i,d,o]);const f=Te(p=>n({adapter:a,value:p,timezone:r,props:t}));return{validationError:d,hasValidationError:u,getValidationErrorForNewValue:f}}function yF(e){return Oe("MuiPickersPopper",e)}De("MuiPickersPopper",["root","paper"]);function vF(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const bF=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Nn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Nn(t.shadowRoot):t:null},wF="@media (pointer: fine)",CF="@media (prefers-reduced-motion: reduce)",vs=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),dm=vs&&vs[1]?parseInt(vs[1],10):null,um=vs&&vs[2]?parseInt(vs[2],10):null,SF=dm&&dm<10||um&&um<13||!1,Mv=()=>sy(CF,{defaultMatches:!1})||SF,_F=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],xF=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},yF,t)},RF=le(Dy,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),TF=le(As,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function kF(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function EF(e,t){const n=k.useRef(!1),o=k.useRef(!1),r=k.useRef(null),i=k.useRef(!1);k.useEffect(()=>{if(!e)return;function d(){i.current=!0}return document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),()=>{document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),i.current=!1}},[e]);const a=Te(d=>{if(!i.current)return;const u=o.current;o.current=!1;const f=yn(r.current);if(!r.current||"clientX"in d&&kF(d,f))return;if(n.current){n.current=!1;return}let p;d.composedPath?p=d.composedPath().indexOf(r.current)>-1:p=!f.documentElement.contains(d.target)||r.current.contains(d.target),!p&&!u&&t(d)}),l=()=>{o.current=!0};return k.useEffect(()=>{if(e){const d=yn(r.current),u=()=>{n.current=!0};return d.addEventListener("touchstart",a),d.addEventListener("touchmove",u),()=>{d.removeEventListener("touchstart",a),d.removeEventListener("touchmove",u)}}},[e,a]),k.useEffect(()=>{if(e){const d=yn(r.current);return d.addEventListener("click",a),()=>{d.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const PF=k.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:r,children:i,paperSlotProps:a,paperClasses:l,onPaperClick:d,onPaperTouchStart:u}=e,f=Be(e,_F),p=Z({},r,{placement:o}),y=ct({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return O.jsx(n,Z({},f,y,{onClick:w=>{d(w),y.onClick?.(w)},onTouchStart:w=>{u(w),y.onTouchStart?.(w)},ownerState:p,children:i}))});function DF(e){const t=It({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:o,containerRef:r=null,shouldRestoreFocus:i,onBlur:a,onDismiss:l,open:d,role:u,placement:f,slots:p,slotProps:y,reduceAnimations:w}=t;k.useEffect(()=>{function Y(H){d&&H.key==="Escape"&&l()}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[l,d]);const b=k.useRef(null);k.useEffect(()=>{u==="tooltip"||i&&!i()||(d?b.current=Nn(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[d,u,i]);const[g,v,T]=EF(d,a??l),P=k.useRef(null),x=at(P,r),S=at(x,g),C=t,D=xF(C),A=Mv(),F=w??A,z=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),l())},R=p?.desktopTransition??F?$r:Ai,$=p?.desktopTrapFocus??Wi,K=p?.desktopPaper??TF,X=p?.popper??RF,q=ct({elementType:X,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:u,open:d,anchorEl:n,placement:f,onKeyDown:z},className:D.root,ownerState:t});return O.jsx(X,Z({},q,{children:({TransitionProps:Y,placement:H})=>O.jsx($,Z({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:O.jsx(R,Z({},Y,y?.desktopTransition,{children:O.jsx(PF,{PaperComponent:K,ownerState:C,popperPlacement:H,ref:S,onPaperClick:v,onPaperTouchStart:T,paperClasses:D.paper,paperSlotProps:y?.desktopPaper,children:o})}))}))}))}const hm=new Set;function OF(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
324
324
|
`):e;hm.has(n)||(hm.add(n),t==="error"?console.error(n):console.warn(n))}const MF=({open:e,onOpen:t,onClose:n})=>{const o=k.useRef(typeof e=="boolean").current,[r,i]=k.useState(!1);k.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[o,e]);const a=k.useCallback(l=>{o||i(l),l&&t&&t(),!l&&n&&n()},[o,t,n]);return{isOpen:r,setIsOpen:a}},ih=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{const i=Nt(),a=k.useRef(n),l=t??a.current??r.emptyValue,d=k.useMemo(()=>r.getTimezone(i,l),[i,r,l]),u=Te(w=>d==null?w:r.setTimezone(i,d,w)),f=e??d??"default",p=k.useMemo(()=>r.setTimezone(i,f,l),[r,i,f,l]),y=Te((w,...b)=>{const g=u(w);o?.(g,...b)});return{value:p,handleValueChange:y,timezone:f}},ah=({name:e,timezone:t,value:n,defaultValue:o,onChange:r,valueManager:i})=>{const[a,l]=Ro({name:e,state:"value",controlled:n,default:o??i.emptyValue}),d=Te((u,...f)=>{l(u),r?.(u,...f)});return ih({timezone:t,value:a,defaultValue:void 0,onChange:d,valueManager:i})},IF=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r}=e,i=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(o.lastPublishedValue):!1},NF=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r,closeOnSelect:i}=e,a=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(o.lastCommittedValue):!1},AF=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},FF=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r})=>{const{onAccept:i,onChange:a,value:l,defaultValue:d,closeOnSelect:u=o==="desktop",timezone:f}=e,{current:p}=k.useRef(d),{current:y}=k.useRef(l!==void 0);process.env.NODE_ENV!=="production"&&(k.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
325
325
|
`))},[l]),k.useEffect(()=>{!y&&p!==d&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
|
|
326
|
-
`))},[JSON.stringify(p)]));const w=Nt(),b=jr(),{isOpen:g,setIsOpen:v}=MF(e),{timezone:T,value:P,handleValueChange:x}=ih({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=k.useState(()=>{let j;return P!==void 0?j=P:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:P,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:D}=Ov({props:e,validator:r,timezone:T,value:S.draft,onError:e.onError}),A=Te(j=>{const J={action:j,dateState:S,hasChanged:B=>!t.areValuesEqual(w,j.value,B),isControlled:y,closeOnSelect:u},ee=IF(J),te=NF(J),ce=AF(J);C(B=>Z({},B,{draft:j.value,lastPublishedValue:ee?j.value:B.lastPublishedValue,lastCommittedValue:te?j.value:B.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ie=null;const he=()=>(ie||(ie={validationError:j.name==="setValueFromField"?j.context.validationError:D(j.value)},j.name==="setValueFromShortcut"&&(ie.shortcut=j.shortcut)),ie);ee&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(P!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(w,S.lastControlledValue,P))){const j=t.areValuesEqual(w,S.draft,P);C(J=>Z({},J,{lastControlledValue:P},j?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{A({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{A({value:t.getTodayValue(w,T,n),name:"setValueFromAction",pickerAction:"today"})}),X=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,J="partial")=>A({name:"setValueFromView",value:j,selectionState:J})),H=Te((j,J,ee)=>A({name:"setValueFromShortcut",value:j,changeImportance:J,shortcut:ee})),ae=Te((j,J)=>A({name:"setValueFromField",value:j,context:J})),N={onClear:F,onAccept:z,onDismiss:R,onCancel:$,onSetToday:K,onOpen:X,onClose:q},M={value:S.draft,onChange:ae},V=k.useMemo(()=>t.cleanValue(w,S.draft),[w,t,S.draft]),W={value:V,onChange:Y,onClose:q,open:g},oe=Z({},N,{value:V,onChange:Y,onSelectShortcut:H,isValid:j=>{const J=r({adapter:b,value:j,timezone:T,props:e});return!t.hasError(J)}}),se=k.useMemo(()=>({onOpen:X,onClose:q,open:g}),[g,q,X]);return{open:g,fieldProps:M,viewProps:W,layoutProps:oe,actions:N,contextValue:se}};let vd=!1;function Iv({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(vd||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),vd=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),vd=!0)));const d=k.useRef(n),u=k.useRef(r),f=k.useRef(r.includes(n)?n:r[0]),[p,y]=Ro({name:"useViews",state:"view",controlled:o,default:f.current}),w=k.useRef(i?p:null),[b,g]=Ro({name:"useViews",state:"focusedView",controlled:a,default:w.current});k.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(A=>!r.includes(A)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),T=r[v-1]??null,P=r[v+1]??null,x=Te((A,F)=>{g(F?A:z=>A===z?null:z),l?.(A,F)}),S=Te(A=>{x(A,!0),A!==p&&(y(A),t&&t(A))}),C=Te(()=>{P&&S(P)}),D=Te((A,F,z)=>{const R=F==="finish",$=z?r.indexOf(z)<r.length-1:!!P;if(e(A,R&&$?"partial":F,z),z&&z!==p){const X=r[r.indexOf(z)+1];X&&S(X)}else R&&C()});return{view:p,setView:S,focusedView:b,setFocusedView:x,nextView:P,previousView:T,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:D}}const LF=["className","sx"],$F=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,g=We(e,LF),{view:v,setView:T,defaultView:P,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=Iv({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:D,viewModeLookup:A}=k.useMemo(()=>f.reduce((q,Y)=>{let H;return w[Y]!=null?H="UI":H="field",q.viewModeLookup[Y]=H,H==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[w,f]),F=k.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&AA(Y)?q+1:q,0),[w,f]),z=A[v],R=Te(()=>z==="UI"),[$,K]=k.useState(z==="UI"?v:null);return $!==v&&A[v]==="UI"&&K(v),nn(()=>{z==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),nn(()=>{if(!l)return;let q=v;z==="field"&&$!=null&&(q=$),q!==P&&A[q]==="UI"&&A[P]==="UI"&&(q=P),q!==v&&T(q),S(q,!0)},[l]),{hasUIView:D,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:T},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Z({},g,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:T,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(w,$,Y):q(Y)}}};function fm(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const VF=(e,t)=>{const[n,o]=k.useState(fm);return nn(()=>{const i=()=>{o(fm())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),vF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},jF=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=VF(n.views,r),a=lo();return{layoutProps:Z({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function WF(e){const{props:t,pickerValueResponse:n}=e;return k.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Nv=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&OF(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=FF({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=$F({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=jF({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=WF({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function Av(e){return Oe("MuiPickersLayout",e)}const _r=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),BF=["onAccept","onClear","onCancel","onSetToday","actions"];function Fv(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=We(e,BF),l=er();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return O.jsx(cs,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return O.jsx(cs,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return O.jsx(cs,{onClick:t,children:l.okButtonLabel},u);case"today":return O.jsx(cs,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return O.jsx(Vy,Z({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(Fv.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Yi=36,fc=2,pc=320,HF=280,lh=336,zF=["items","changeImportance","isLandscape","onChange","isValid"],YF=["getValue"];function Lv(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=We(e,zF);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=We(l,YF);const f=d({isValid:r});return Z({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return O.jsx(Gu,Z({dense:!0,sx:[{maxHeight:lh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>O.jsx(Hy,{children:O.jsx(Oy,Z({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Lv.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function UF(e){return e.view!==null}const qF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Av,t)},GF=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:g,children:v,slots:T,slotProps:P}=e,x=qF(e),S=T?.actionBar??Fv,C=ct({elementType:S,externalSlotProps:P?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Z({},e,{wrapperVariant:t})}),D=O.jsx(S,Z({},C)),A=T?.toolbar,F=ct({elementType:A,externalSlotProps:P?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:b,readOnly:g},className:x.toolbar,ownerState:Z({},e,{wrapperVariant:t})}),z=UF(F)&&A?O.jsx(A,Z({},F)):null,R=v,$=T?.tabs,K=a&&$?O.jsx($,Z({view:a,onViewChange:d,className:x.tabs},P?.tabs)):null,X=T?.shortcuts??Lv,q=ct({elementType:X,externalSlotProps:P?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&X?O.jsx(X,Z({},q)):null;return{toolbar:z,content:R,tabs:K,actionBar:D,shortcuts:Y}},KF=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Av,n)},XF=le("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${_r.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${_r.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${_r.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${_r.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${_r.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${_r.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${_r.shortcuts}`]:{gridColumn:3}}}]}),ZF=le("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),ch=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=GF(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,w=KF(o);return O.jsxs(XF,{ref:n,sx:u,className:Se(w.root,f),ownerState:o,children:[p?d:r,p?r:d,O.jsx(ZF,{className:w.contentWrapper,children:y==="desktop"?O.jsxs(k.Fragment,{children:[i,a]}):O.jsxs(k.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(ch.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const QF=k.createContext(null);function $v(e){const{contextValue:t,localeText:n,children:o}=e;return O.jsx(QF.Provider,{value:t,children:O.jsx(uc,{localeText:n,children:o})})}const JF=["props","getOpenDialogAriaText"],eL=["ownerState"],tL=["ownerState"],nL=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,JF);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:g,inputRef:v,readOnly:T,disabled:P,autoFocus:x,localeText:S,reduceAnimations:C}=t,D=k.useRef(null),A=k.useRef(null),F=fr(),z=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:H,contextValue:ae,ownerState:N}=Nv(Z({},o,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??qu,V=ct({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),W=We(V,eL),ne=r.openPickerButton??Fs,oe=ct({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:P||T,onClick:R?$.onClose:$.onOpen,"aria-label":n(H.value),edge:W.position},ownerState:t}),se=We(oe,tL),j=r.openPickerIcon,J=ct({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:N}),ee=r.field,te=ct({elementType:ee,externalSlotProps:i?.field,additionalProps:Z({},H,z&&{id:F},{readOnly:T,disabled:P,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:g,name:b,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Z({},te.InputProps,{ref:D},!t.disableOpenPicker&&{[`${W.position}Adornment`]:O.jsx(M,Z({},W,{children:O.jsx(ne,Z({},se,{children:O.jsx(j,Z({},J))}))}))}));const ce=Z({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),ie=r.layout??ch;let he=F;z&&(g?he=`${F}-label`:he=void 0);const B=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:F}),popper:Z({"aria-labelledby":he},i?.popper)}),re=at(A,te.unstableFieldRef);return{renderPicker:()=>O.jsxs($v,{contextValue:ae,localeText:S,children:[O.jsx(ee,Z({},te,{slots:ce,slotProps:B,unstableFieldRef:re})),O.jsx(DF,Z({role:"dialog",placement:"bottom-start",anchorEl:D.current},$,{open:R,slots:r,slotProps:B,shouldRestoreFocus:Y,reduceAnimations:C,children:O.jsx(ie,Z({},X,B?.layout,{slots:r,slotProps:B,children:q()}))}))]})}},oL=an(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rL=an(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),sL=an(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),iL=an(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");an(O.jsxs(k.Fragment,{children:[O.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");an(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");an(O.jsxs(k.Fragment,{children:[O.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const aL=an(O.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"}),"Clear"),lL=({utils:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return r},cL=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},dL=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},uL=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=oh(e,a),u=xv(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(u)w=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=d.maxLength,p&&(y=rh(Cv(Fr(y,r),w),r))}return Z({},d,{format:a,maxLength:w,value:y,placeholder:dL(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},hL=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=w=>o.find(b=>b.start<=w&&b.end>=w);let y=0;for(;y<n.length;){const w=p(y),b=w!=null,g=d.exec(n.slice(y))?.[1];if(!b&&g!=null&&u.test(g)){let v=g;for(;v.length>0;){const T=f.exec(v)[1];v=v.slice(T.length),i.push(uL(Z({},e,{now:r,token:T,startSeparator:a}))),a=""}y+=g.length}else{const v=n[y];b&&w?.start===y||w?.end===y||(i.length===0?a+=v:i[i.length-1].endSeparator+=v),y+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},fL=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),pm=e=>{let t=lL(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=cL(Z({},e,{expandedFormat:t})),o=hL(Z({},e,{expandedFormat:t,escapedParts:n}));return fL(Z({},e,{sections:o}))},pL=e=>{const t=Nt(),n=er(),o=jr(),r=lo(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:T,shouldRespectLeadingZeros:P=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:D,handleValueChange:A}=ih({timezone:x,value:f,defaultValue:p,onChange:w,valueManager:i}),F=k.useMemo(()=>WA(t),[t]),z=k.useMemo(()=>UA(t,F,C),[t,F,C]),R=k.useCallback((j,J=null)=>a.getSectionsFromValue(t,j,J,ee=>pm({utils:t,localeText:n,localizedDigits:F,format:b,date:ee,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,b,n,F,r,P,t,g,S]),[$,K]=k.useState(()=>{const j=R(D);am(j,l);const J={sections:j,value:D,referenceValue:i.emptyValue,tempValueStrAndroid:null},ee=LA(j),te=i.getInitialReferenceValue({referenceDate:y,value:D,utils:t,props:u,granularity:ee,timezone:C});return Z({},J,{referenceValue:te})}),[X,q]=Ro({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),T?.(j)},H=k.useMemo(()=>Gd(X,$.sections),[X,$.sections]),ae=H==="all"?0:H,N=({value:j,referenceValue:J,sections:ee})=>{if(K(ce=>Z({},ce,{sections:ee,value:j,referenceValue:J,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};A(j,te)},M=(j,J)=>{const ee=[...$.sections];return ee[j]=Z({},ee[j],{value:J,modified:!0}),ee},V=()=>{N({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},W=()=>{if(ae==null)return;const j=$.sections[ae],J=a.getActiveDateManager(t,$,j),te=J.getSections($.sections).filter(B=>B.value!=="").length===(j.value===""?0:1),ce=M(ae,""),ie=te?null:t.getInvalidDate(),he=J.getNewValuesFromNewActiveDate(ie);N(Z({},he,{sections:ce}))},ne=j=>{const J=(ce,ie)=>{const he=t.parse(ce,b);if(he==null||!t.isValid(he))return null;const B=pm({utils:t,localeText:n,localizedDigits:F,format:b,date:he,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:S,isRtl:r});return cm(t,he,B,ie,!1)},ee=a.parseValueStr(j,$.referenceValue,J),te=a.updateReferenceValue(t,ee,$.referenceValue);N({value:ee,referenceValue:te,sections:R(ee,$.sections)})},oe=({activeSection:j,newSectionValue:J,shouldGoToNextSection:ee})=>{ee&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,J),ie=te.getSections(ce),he=HA(t,ie,F);let B,re;if(he!=null&&t.isValid(he)){const Q=cm(t,he,ie,te.referenceDate,!0);B=te.getNewValuesFromNewActiveDate(Q),re=!0}else B=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?N(Z({},B,{sections:ce})):K(Q=>Z({},Q,B,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(J=>Z({},J,{tempValueStrAndroid:j}));return k.useEffect(()=>{const j=R($.value);am(j,l),K(J=>Z({},J,{sections:j}))},[b,t.locale,r]),k.useEffect(()=>{let j;i.areValuesEqual(t,$.value,D)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,D):j=!0,j&&K(J=>Z({},J,{value:D,referenceValue:a.updateReferenceValue(t,D,J.referenceValue),sections:R(D)}))},[D]),{state:$,activeSectionIndex:ae,parsedSelectedSections:H,setSelectedSections:Y,clearValue:V,clearActiveSection:W,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:z,localizedDigits:F,timezone:C}},mL=5e3,ss=e=>e.saveQuery!=null,gL=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Nt(),[l,d]=k.useState(null),u=Te(()=>d(null));k.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),k.useEffect(()=>{if(l!=null){const b=setTimeout(()=>u(),mL);return()=>{clearTimeout(b)}}return()=>{}},[l,u]);const f=({keyPressed:b,sectionIndex:g},v,T)=>{const P=b.toLowerCase(),x=e[g];if(l!=null&&(!T||T(l.value))&&l.sectionIndex===g){const C=`${l.value}${P}`,D=v(C,x);if(!ss(D))return d({sectionIndex:g,value:C,sectionType:x.type}),D}const S=v(P,x);return ss(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:g,value:P,sectionType:x.type}),ss(S)?null:S)},p=b=>{const g=(P,x,S)=>{const C=x.filter(D=>D.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(P,x,S,C)=>{const D=A=>wv(a,i,x.type,A);if(x.contentType==="letter")return g(x.format,D(x.format),P);if(S&&C!=null&&oh(a,S).contentType==="letter"){const A=D(S),F=g(S,A,P);return ss(F)?{saveQuery:!1}:Z({},F,{sectionValue:C(F.sectionValue,A)})}return{saveQuery:!1}};return f(b,(P,x)=>{switch(x.type){case"month":{const S=C=>sm(a,C,a.formats.month,x.format);return v(P,x,a.formats.month,S)}case"weekDay":{const S=(C,D)=>D.indexOf(C).toString();return v(P,x,a.formats.weekday,S)}case"meridiem":return v(P,x);default:return{saveQuery:!1}}})},y=b=>{const g=(T,P)=>{const x=Fr(T,o),S=Number(x),C=n[P.type]({currentDate:null,format:P.format,contentType:P.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const D=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:Sv(a,S,C,o,P),shouldGoToNextSection:D}};return f(b,(T,P)=>{if(P.contentType==="digit"||P.contentType==="digit-with-letter")return g(T,P);if(P.type==="month"){xv(a,"digit","month","MM");const x=g(T,{type:P.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ss(x))return x;const S=sm(a,x.sectionValue,"MM",P.format);return Z({},x,{sectionValue:S})}if(P.type==="weekDay"){const x=g(T,P);if(ss(x))return x;const S=dc(a,P.format)[Number(x.sectionValue)-1];return Z({},x,{sectionValue:S})}return{saveQuery:!1}},T=>rm(T,o))};return{applyCharacterEditing:Te(b=>{const g=e[b.sectionIndex],T=rm(b.keyPressed,o)?y(Z({},b,{keyPressed:rh(b.keyPressed,o)})):p(b);if(T==null){r(null);return}t({activeSection:g,newSectionValue:T.sectionValue,shouldGoToNextSection:T.shouldGoToNextSection})}),resetCharacterQuery:u}},yL=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:g,state:v,clearActiveSection:T,clearValue:P,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:D,sectionsValueBoundaries:A}=e,F=k.useRef(null),z=at(o,F),R=er(),$=Nt(),K=fr(),[X,q]=k.useState(!1),Y=k.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(g==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),X&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains(Nn(document)))return;const Q=new window.Range;let fe;g==="all"?fe=F.current.getRoot():v.sections[g].type==="empty"?fe=F.current.getSectionContainer(g):fe=F.current.getSectionContent(g),Q.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Q)},getActiveSectionIndexFromDOM:()=>{const re=Nn(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Q=Gd(re,v.sections);q(!0),F.current.getSectionContent(Q).focus()},setSelectedSections:re=>{if(!F.current)return;const Q=Gd(re,v.sections);q((Q==="all"?0:Q)!==null),b(re)},isFieldFocused:()=>{const re=Nn(document);return!!F.current&&F.current.getRoot().contains(re)}}),[g,b,v.sections,X]),H=Te(re=>{if(!F.current)return;const Q=v.sections[re];F.current.getSectionContent(re).innerHTML=Q.value||Q.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Q)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Q),g==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let me=0,Ce=0;for(;Ce<fe&&me<v.sections.length;){const ve=v.sections[me];me+=1,Ce+=`${ve.startSeparator}${ve.value||ve.placeholder}${ve.endSeparator}`.length}b(me-1)}):X?F.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),N=Te(re=>{if(l?.(re),!F.current||g!=="all")return;const fe=re.target.textContent??"";F.current.getRoot().innerHTML=v.sections.map(me=>`${me.startSeparator}${me.value||me.placeholder}${me.endSeparator}`).join(""),Y.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(w(),P(),b("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||g!=="all"){re.preventDefault();return}const Q=re.clipboardData.getData("text");re.preventDefault(),w(),S(Q)}),V=Te((...re)=>{if(a?.(...re),X||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement(Nn(document))!=null||b(C.startIndex)}),W=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Q=Nn(document);!F.current.getRoot().contains(Q)&&(q(!1),b(null))})}),ne=Te(re=>Q=>{Q.isDefaultPrevented()||b(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{b(re)}),j=Te(re=>{if(re.preventDefault(),n||t||typeof g!="number")return;const Q=v.sections[g],fe=re.clipboardData.getData("text"),me=/^[a-zA-Z]+$/.test(fe),Ce=/^[0-9]+$/.test(fe),ve=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Q.contentType==="letter"&&me||Q.contentType==="digit"&&Ce||Q.contentType==="digit-with-letter"&&ve?(w(),x({activeSection:Q,newSectionValue:fe,shouldGoToNextSection:!0})):!me&&!Ce&&(w(),S(fe))}),J=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),ee=Te(re=>{if(!F.current)return;const Q=re.target,fe=Q.textContent??"",me=F.current.getSectionIndexFromDOMElement(Q),Ce=v.sections[me];if(n||!F.current){H(me);return}if(fe.length===0){if(Ce.value===""){H(me);return}const ve=re.nativeEvent.inputType;if(ve==="insertParagraph"||ve==="insertLineBreak"){H(me);return}w(),T();return}y({keyPressed:fe,sectionIndex:me}),H(me)});nn(()=>{if(!(!X||!F.current)){if(g==="all")F.current.getRoot().focus();else if(typeof g=="number"){const re=F.current.getSectionContent(g);re&&re.focus()}}},[g,X]);const te=k.useMemo(()=>v.sections.reduce((re,Q)=>(re[Q.type]=A[Q.type]({currentDate:null,contentType:Q.contentType,format:Q.format}),re),{}),[A,v.sections]),ce=g==="all",ie=k.useMemo(()=>v.sections.map((re,Q)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Q,onClick:ne(Q)},content:{tabIndex:ce||Q>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":ZA(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?XA(re,$):R.empty,"aria-label":R[re.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(k.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:ee,onPaste:j,onFocus:se(Q),onDragOver:J,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,J,ee,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),B=k.useMemo(()=>D?"":p.getV7HiddenInputValueFromSections(v.sections),[D,v.sections,p]);return k.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
327
|
-
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??X,sectionListRef:z,onBlur:W,onClick:ae,onFocus:V,onInput:N,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:ie,tabIndex:g===0?-1:0,contentEditable:ce,value:B,onChange:he,areAllSectionsEmpty:D}}},hs=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),vL=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=sh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=hs(u).length,p=u.length,y=hs(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Z({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},bL=e=>{const t=lo(),n=k.useRef(),o=k.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:g,valueManager:v,applyCharacterEditing:T,resetCharacterQuery:P,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:D,setTempAndroidValueStr:A,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=k.useRef(null),X=at(d,K),q=k.useMemo(()=>vL(b.sections,$,t),[b.sections,$,t]),Y=k.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==Nn(document))return;const ee=K.current.scrollTop;if(y==="all")K.current.select();else{const te=q[y],ce=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,ie=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||ie!==K.current.selectionEnd)&&K.current===Nn(document)&&K.current.setSelectionRange(ce,ie),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===Nn(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==ie)&&Y.syncSelectionToDOM()})}K.current.scrollTop=ee},getActiveSectionIndexFromDOM:()=>{const ee=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(ee===0&&te===0)return null;const ce=ee<=q[0].startInInput?1:q.findIndex(ie=>ie.startInInput-ie.startSeparator.length>ee);return ce===-1?q.length-1:ce-1},focusField:(ee=0)=>{K.current?.focus(),F(ee)},setSelectedSections:ee=>F(ee),isFieldFocused:()=>K.current===Nn(document)}),[K,y,q,F]),H=()=>{const ee=K.current.selectionStart??0;let te;ee<=q[0].startInInput||ee>=q[q.length-1].endInInput?te=1:te=q.findIndex(ie=>ie.startInInput-ie.startSeparator.length>ee);const ce=te===-1?q.length-1:te-1;F(ce)},ae=Te((...ee)=>{r?.(...ee);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),N=Te((ee,...te)=>{ee.isDefaultPrevented()||(i?.(ee,...te),H())}),M=Te(ee=>{if(a?.(ee),ee.preventDefault(),f||p)return;const te=ee.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],ie=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),B=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&ie||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&B){P(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(ie||he)return}P(),S(te)}),V=Te((...ee)=>{l?.(...ee),F(null)}),W=Te(ee=>{if(f)return;const te=ee.target.value;if(te===""){P(),D();return}const ce=ee.nativeEvent.data,ie=ce&&ce.length>1,he=ie?ce:te,B=hs(he);if(w==null||ie){S(ie?ce:B);return}let re;if(y==="all"&&B.length===1)re=B;else{const Q=hs(g.getV6InputValueFromSections(q,$,t));let fe=-1,me=-1;for(let $e=0;$e<Q.length;$e+=1)fe===-1&&Q[$e]!==B[$e]&&(fe=$e),me===-1&&Q[Q.length-$e-1]!==B[B.length-$e-1]&&(me=$e);const Ce=q[w];if(fe<Ce.start||Q.length-me-1>Ce.end)return;const xe=B.length-Q.length+Ce.end-hs(Ce.endSeparator||"").length;re=B.slice(Ce.start+hs(Ce.startSeparator||"").length,xe)}if(re.length===0){GA()&&A(he),P(),C();return}T({keyPressed:re,sectionIndex:w})}),ne=k.useMemo(()=>u!==void 0?u:g.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,g,z,v.emptyValue,$,t]),oe=k.useMemo(()=>b.tempValueStrAndroid??g.getV6InputValueFromSections(b.sections,$,t),[b.sections,g,b.tempValueStrAndroid,$,t]);k.useEffect(()=>(K.current&&K.current===Nn(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=k.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),J=!(K.current&&K.current===Nn(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:V,onClick:N,onFocus:ae,onPaste:M,inputRef:X,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:J?"":oe,onChange:W}}},wL=e=>{const t=Nt(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,g=lo(),v=pL(e),{state:T,activeSectionIndex:P,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:D,updateSectionValue:A,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=gL({sections:T.sections,updateSectionValue:A,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:X}=K,q=w.areValuesEqual(t,T.value,w.emptyValue),Y=i?yL:bL,H=k.useMemo(()=>KA(T.sections,g&&!i),[T.sections,g,i]),{returnedValue:ae,interactions:N}=Y(Z({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(H.startIndex);else if(x==="all")S(H.endIndex);else{const J=H.neighbors[x].rightIndex;J!==null&&S(J)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(H.endIndex);else if(x==="all")S(H.startIndex);else{const J=H.neighbors[x].leftIndex;J!==null&&S(J)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():D(),X();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||P==null)break;const J=T.sections[P],ee=y.getActiveDateManager(t,T,J),te=BA(t,$,J,j.key,z,R,ee.date,{minutesStep:r});A({activeSection:J,newSectionValue:te,shouldGoToNextSection:!1});break}}});nn(()=>{N.syncSelectionToDOM()});const{hasValidationError:V}=Ov({props:n,validator:b,timezone:$,value:T.value,onError:n.onError}),W=k.useMemo(()=>u!==void 0?u:V,[V,u]);k.useEffect(()=>{!W&&P==null&&X()},[T.referenceValue,P,W]),k.useEffect(()=>{T.tempValueStrAndroid!=null&&P!=null&&(X(),D())},[T.sections]),k.useImperativeHandle(o,()=>({getSections:()=>T.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));const ne=Te((j,...J)=>{j.preventDefault(),p?.(j,...J),C(),N.isFieldFocused()?S(H.startIndex):N.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:W,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Z({},e.forwardedProps,oe,se,ae)},CL=["clearable","onClear","InputProps","sx","slots","slotProps"],SL=["ownerState"],_L=e=>{const t=er(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=We(e,CL),u=a?.clearButton??Fs,f=ct({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=We(f,SL),y=a?.clearIcon??aL,w=ct({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Z({},d,{InputProps:Z({},r,{endAdornment:O.jsxs(k.Fragment,{children:[n&&O.jsx(qu,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:O.jsx(u,Z({},p,{onClick:o,children:O.jsx(y,Z({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},xL=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],RL=(e,t)=>k.useMemo(()=>{const n=Z({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return xL.forEach(r),Pv.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),TL=e=>{const t=Nt(),n=ha();return Z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Xn(t,e.minDate,n.minDate),maxDate:Xn(t,e.maxDate,n.maxDate)})},kL=e=>{const t=TL(e),{forwardedProps:n,internalProps:o}=RL(t,"date");return wL({forwardedProps:n,internalProps:o,valueManager:ko,fieldValueManager:JA,validator:fa,valueType:"date"})};function EL(e){return Oe("MuiPickersTextField",e)}De("MuiPickersTextField",["root","focused","disabled","error","required"]);function PL(e){return Oe("MuiPickersInputBase",e)}const bs=De("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function DL(e){return Oe("MuiPickersSectionList",e)}const ai=De("MuiPickersSectionList",["root","section","sectionContent"]),OL=["slots","slotProps","elements","sectionListRef"],Vv=le("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),jv=le("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Wv=le("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Bv=le("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),ML=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},DL,t)};function Hv(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??jv,a=ct({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??Bv,d=ct({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Wv,f=ct({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=ct({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return O.jsxs(i,Z({},a,{children:[O.jsx(u,Z({},f)),O.jsx(l,Z({},d)),O.jsx(u,Z({},p))]}))}process.env.NODE_ENV!=="production"&&(Hv.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const zv=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=We(o,OL),u=ML(o),f=k.useRef(null),p=at(n,f),y=g=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return f.current};k.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(g){return y("getSectionContainer").querySelector(`.${ai.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return y("getSectionContent").querySelector(`.${ai.section}[data-sectionindex="${g}"] .${ai.sectionContent}`)},getSectionIndexFromDOMElement(g){const v=y("getSectionIndexFromDOMElement");if(g==null||!v.contains(g))return null;let T=null;return g.classList.contains(ai.section)?T=g:g.classList.contains(ai.sectionContent)&&(T=g.parentElement),T==null?null:Number(T.dataset.sectionindex)}}));const w=r?.root??Vv,b=ct({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return O.jsx(w,Z({},b,{children:b.contentEditable?a.map(({content:g,before:v,after:T})=>`${v.children}${g.children}${T.children}`).join(""):O.jsx(k.Fragment,{children:a.map((g,v)=>O.jsx(Hv,{slots:r,slotProps:i,element:g,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(zv.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const IL=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],NL=e=>Math.round(e*1e5)/1e5,mc=le("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${NL(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),dh=le(Vv,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:r})=>!t&&!n&&!o&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),AL=le(jv,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),FL=le(Bv,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),LL=le(Wv,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),$L=le("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Z({},aT)),VL=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${be(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,PL,r)},gc=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:g,onInput:v,onPaste:T,onKeyDown:P,name:x,readOnly:S,inputProps:C,inputRef:D,sectionListRef:A}=o,F=We(o,IL),z=k.useRef(null),R=at(n,z),$=at(C?.ref,D),K=lo(),X=On();if(!X)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=V=>{if(X.disabled){V.stopPropagation();return}X.onFocus?.(V)};k.useEffect(()=>{X&&X.setAdornedStart(!!f)},[X,f]),k.useEffect(()=>{X&&(i?X.onEmpty():X.onFilled())},[X,i]);const Y=Z({},o,X,{isRtl:K}),H=VL(Y),ae=y?.root||mc,N=ct({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":X.error,ref:R},className:H.root,ownerState:Y}),M=y?.input||dh;return O.jsxs(ae,Z({},N,{children:[f,O.jsx(zv,{sectionListRef:A,elements:r,contentEditable:b,tabIndex:g,className:H.sectionsContainer,onFocus:q,onBlur:X.onBlur,onInput:v,onPaste:T,onKeyDown:P,slots:{root:M,section:AL,sectionContent:FL,sectionSeparator:LL},slotProps:{root:{ownerState:Y},sectionContent:{className:bs.sectionContent},sectionSeparator:({position:V})=>({className:V==="before"?bs.sectionBefore:bs.sectionAfter})}}),u,p?p(Z({},X)):null,O.jsx($L,Z({name:x,className:H.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:X.required,disabled:X.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(gc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function jL(e){return Oe("MuiPickersOutlinedInput",e)}const no=Z({},bs,De("MuiPickersOutlinedInput",["root","notchedOutline","input"])),WL=["children","className","label","notched","shrink"],BL=le("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),mm=le("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),HL=le("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function zL(e){const{className:t,label:n}=e,o=We(e,WL),r=n!=null&&n!=="",i=Z({},e,{withLabel:r});return O.jsx(BL,Z({"aria-hidden":!0,className:t},o,{ownerState:i,children:O.jsx(HL,{ownerState:i,children:r?O.jsx(mm,{children:n}):O.jsx(mm,{className:"notranslate",children:""})})}))}const YL=["label","autoFocus","ownerState","notched"],UL=le(mc,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${no.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${no.focused} .${no.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${no.disabled}`]:{[`& .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${no.error} .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${no.focused}:not(.${no.error}) .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),qL=le(dh,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),GL=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jL,t);return Z({},t,o)},uh=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=We(o,YL),d=On(),u=Z({},o,i,d,{color:d?.color||"primary"}),f=GL(u);return O.jsx(gc,Z({slots:{root:UL,input:qL},renderSuffix:p=>O.jsx(zL,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?O.jsxs(k.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(uh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});uh.muiName="Input";function KL(e){return Oe("MuiPickersFilledInput",e)}const xr=Z({},bs,De("MuiPickersFilledInput",["root","underline","input"])),XL=["label","autoFocus","disableUnderline","ownerState"],ZL=le(mc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Za(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${xr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${xr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xr.disabled}, .${xr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),QL=le(dh,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),JL=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},KL,t);return Z({},t,r)},hh=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=We(o,XL),d=On(),u=Z({},o,a,d,{color:d?.color||"primary"}),f=JL(u);return O.jsx(gc,Z({slots:{root:ZL,input:QL},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(hh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});hh.muiName="Input";function e$(e){return Oe("MuiPickersFilledInput",e)}const li=Z({},bs,De("MuiPickersInput",["root","input"])),t$=["label","autoFocus","disableUnderline","ownerState"],n$=le(mc,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${li.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${li.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${li.disabled}, .${li.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${li.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),o$=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},e$,t);return Z({},t,r)},fh=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=We(o,t$),d=On(),u=Z({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=o$(u);return O.jsx(gc,Z({slots:{root:n$}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(fh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});fh.muiName="Input";const r$=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],s$={standard:fh,filled:hh,outlined:uh},i$=le(la,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),a$=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},EL,o)},Yv=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:g,elements:v,areAllSectionsEmpty:T,onClick:P,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:D,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:X,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:N,label:M,InputLabelProps:V}=o,W=We(o,r$),ne=k.useRef(null),oe=at(n,ne),se=fr(Y),j=ae&&se?`${se}-helper-text`:void 0,J=M&&se?`${se}-label`:void 0,ee=Z({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=a$(ee),ce=s$[f];return O.jsxs(i$,Z({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:ee},W,{children:[O.jsx(ca,Z({htmlFor:se,id:J},V,{children:M})),O.jsx(ce,Z({elements:v,areAllSectionsEmpty:T,onClick:P,onKeyDown:x,onKeyUp:S,onInput:D,onPaste:C,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:X,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:g,label:M,name:H,role:"group","aria-labelledby":J},y)),ae&&O.jsx(Uu,Z({id:j},N,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(Yv.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const l$=["enableAccessibleFieldDOMStructure"],c$=["InputProps","readOnly"],d$=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],u$=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=We(e,l$);if(t){const{InputProps:p,readOnly:y}=n,w=We(n,c$);return Z({},w,{InputProps:Z({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=We(n,d$);return Z({},f,{InputProps:Z({},l??{},{readOnly:a}),inputProps:Z({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},h$=["slots","slotProps","InputProps","inputProps"],ph=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=We(o,h$),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?Yv:Es),p=ct({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Z({},l,p.inputProps),p.InputProps=Z({},a,p.InputProps);const y=kL(p),w=u$(y),b=_L(Z({},w,{slots:r,slotProps:i}));return O.jsx(f,Z({},b))});process.env.NODE_ENV!=="production"&&(ph.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const Uv=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=jr();return k.useCallback(u=>fa({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},f$=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Z({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=r.newTimezone;if(n.getTimezone(o.currentMonth)===i)return o;let a=n.setTimezone(o.currentMonth,i);return n.getMonth(a)!==n.getMonth(o.currentMonth)&&(a=n.setMonth(a,n.getMonth(o.currentMonth))),Z({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Z({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const i=r.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return Z({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:i&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},p$=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Nt(),w=k.useRef(f$(!!u,i,y)).current,b=k.useMemo(()=>ko.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:vo.day}),[n,p]),[g,v]=k.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});k.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const T=k.useCallback(D=>{v(Z({type:"changeMonth"},D)),d&&d(D.newMonth)},[d]),P=k.useCallback(D=>{const A=D;y.isSameMonth(A,g.currentMonth)||T({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,g.currentMonth)?"left":"right"})},[g.currentMonth,T,y]),x=Uv({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=k.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((D,A)=>{x(D)||v({type:"changeFocusedDay",focusedDay:D,withoutMonthSwitchingAnimation:A})});return{referenceDate:b,calendarState:g,changeMonth:P,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:T}},m$=e=>Oe("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const g$=e=>{const{classes:t}=e;return Ie({root:["root"]},m$,t)},y$=le(ra,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function qv(e){const t=It({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=g$(t),l=Ns();return r?n:O.jsx(y$,{className:Se(a.root,o),children:O.jsx($r,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function v$(e){return Oe("MuiPickersDay",e)}const Rr=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),b$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],w$=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},v$,d)},Gv=({theme:e})=>Z({},e.typography.caption,{width:Yi,height:Yi,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Rr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Rr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Rr.disabled}:not(.${Rr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rr.disabled}&.${Rr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${fc}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Rr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Kv=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},C$=le(dr,{name:"MuiPickersDay",slot:"Root",overridesResolver:Kv})(Gv),S$=le("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Kv})(({theme:e})=>Z({},Gv({theme:e}),{opacity:0,pointerEvents:"none"})),ci=()=>{},Xv=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=ci,onBlur:b=ci,onKeyDown:g=ci,onMouseDown:v=ci,onMouseEnter:T=ci,outsideCurrentMonth:P,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:D=!1}=o,A=We(o,b$),F=Z({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:D}),z=w$(F),R=Nt(),$=k.useRef(null),K=at($,n);nn(()=>{r&&!l&&!f&&!P&&$.current.focus()},[r,l,f,P]);const X=Y=>{v(Y),P&&Y.preventDefault()},q=Y=>{l||y(a),P&&Y.currentTarget.focus(),p&&p(Y)};return P&&!S?O.jsx(S$,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:A.role}):O.jsx(C$,Z({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>g(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>T(Y,a),onClick:q,onMouseDown:X},A,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Xv.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const _$=k.memo(Xv),x$=e=>Oe("MuiPickersSlideTransition",e),Bn=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),R$=["children","className","reduceAnimations","slideDirection","transKey","classes"],T$=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,x$,t)},k$=le(ra,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Bn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Bn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Bn.slideEnterActive}`]:t.slideEnterActive},{[`.${Bn.slideExit}`]:t.slideExit},{[`.${Bn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Bn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Bn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Bn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Bn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Bn.slideExit}`]:{transform:"translate(0%)"},[`& .${Bn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Bn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function E$(e){const t=It({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=We(t,R$),l=T$(t),d=Ns();if(r)return O.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return O.jsx(k$,{className:Se(l.root,o),childFactory:f=>k.cloneElement(f,{classNames:u}),role:"presentation",children:O.jsx(Iu,Z({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const P$=e=>Oe("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const D$=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],O$=["ownerState"],M$=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},P$,t)},Zv=(Yi+fc*2)*6,I$=le("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N$=le("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),A$=le(Tn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),F$=le(Tn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),L$=le(Tn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Z({},e.typography.caption,{width:Yi,height:Yi,padding:0,margin:`0 ${fc}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),$$=le("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Zv}),V$=le(E$,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Zv}),j$=le("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),W$=le("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${fc}px 0`,display:"flex",justifyContent:"center"});function B$(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=We(e,D$);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:g}=t,v=Nt(),T=hc(g),P=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,T),C=w?.day??_$,D=ct({elementType:C,externalSlotProps:b?.day,additionalProps:Z({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Z({},t,{day:n,selected:x})}),A=We(D,O$),F=k.useMemo(()=>u||i(n),[u,i,n]),z=k.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=k.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=k.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return O.jsx(C,Z({},A,{day:n,disabled:F,autoFocus:l&&P,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:P?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function H$(e){const t=It({props:e,name:"MuiDayCalendar"}),n=Nt(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>O.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:g,disablePast:v,disableFuture:T,minDate:P,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:D,dayOfWeekFormatter:A=me=>n.format(me,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:z,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:X,timezone:q}=t,Y=hc(q),H=M$(t),ae=lo(),N=Uv({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:D,minDate:P,maxDate:x,disablePast:v,disableFuture:T,timezone:q}),M=er(),[V,W]=Ro({name:"DayCalendar",state:"hasFocus",controlled:F,default:X??!1}),[ne,oe]=k.useState(()=>l||Y),se=Te(me=>{p||u(me)}),j=me=>{N(me)||(o(me),oe(me),z?.(!0),W(!0))},J=Te((me,Ce)=>{switch(me.key){case"ArrowUp":j(n.addDays(Ce,-7)),me.preventDefault();break;case"ArrowDown":j(n.addDays(Ce,7)),me.preventDefault();break;case"ArrowLeft":{const ve=n.addDays(Ce,ae?1:-1),xe=n.addMonths(Ce,ae?1:-1),$e=_i({utils:n,date:ve,minDate:ae?ve:n.startOfMonth(xe),maxDate:ae?n.endOfMonth(xe):ve,isDateDisabled:N,timezone:q});j($e||ve),me.preventDefault();break}case"ArrowRight":{const ve=n.addDays(Ce,ae?-1:1),xe=n.addMonths(Ce,ae?-1:1),$e=_i({utils:n,date:ve,minDate:ae?n.startOfMonth(xe):ve,maxDate:ae?ve:n.endOfMonth(xe),isDateDisabled:N,timezone:q});j($e||ve),me.preventDefault();break}case"Home":j(n.startOfWeek(Ce)),me.preventDefault();break;case"End":j(n.endOfWeek(Ce)),me.preventDefault();break;case"PageUp":j(n.addMonths(Ce,1)),me.preventDefault();break;case"PageDown":j(n.addMonths(Ce,-1)),me.preventDefault();break}}),ee=Te((me,Ce)=>j(Ce)),te=Te((me,Ce)=>{V&&n.isSameDay(ne,Ce)&&z?.(!1)}),ce=n.getMonth(i),ie=n.getYear(i),he=k.useMemo(()=>a.filter(me=>!!me).map(me=>n.startOfDay(me)),[n,a]),B=`${ie}-${ce}`,re=k.useMemo(()=>k.createRef(),[B]),Q=k.useMemo(()=>{const me=n.startOfMonth(i),Ce=n.endOfMonth(i);return N(ne)||n.isAfterDay(ne,Ce)||n.isBeforeDay(ne,me)?_i({utils:n,date:ne,minDate:me,maxDate:Ce,disablePast:v,disableFuture:T,isDateDisabled:N,timezone:q}):ne},[i,T,v,ne,N,n,q]),fe=k.useMemo(()=>{const me=n.getWeekArray(i);let Ce=n.addMonths(i,1);for(;K&&me.length<K;){const ve=n.getWeekArray(Ce),xe=n.isSameDay(me[me.length-1][0],ve[0][0]);ve.slice(xe?1:0).forEach($e=>{me.length<K&&me.push($e)}),Ce=n.addMonths(Ce,1)}return me},[i,K,n]);return O.jsxs(I$,{role:"grid","aria-labelledby":R,className:H.root,children:[O.jsxs(N$,{role:"row",className:H.header,children:[$&&O.jsx(F$,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),IA(n,Y).map((me,Ce)=>O.jsx(A$,{variant:"caption",role:"columnheader","aria-label":n.format(me,"weekday"),className:H.weekDayLabel,children:A(me)},Ce.toString()))]}),d?O.jsx($$,{className:H.loadingContainer,children:w()}):O.jsx(V$,Z({transKey:B,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,H.slideTransition)},g,{nodeRef:re,children:O.jsx(j$,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((me,Ce)=>O.jsxs(W$,{role:"row",className:H.weekContainer,"aria-rowindex":Ce+1,children:[$&&O.jsx(L$,{className:H.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(me[0])),children:M.calendarWeekNumberText(n.getWeekNumber(me[0]))}),me.map((ve,xe)=>O.jsx(B$,{parentProps:t,day:ve,selectedDays:he,focusableDay:Q,onKeyDown:J,onFocus:ee,onBlur:te,onDaySelect:se,isDateDisabled:N,currentMonthNumber:ce,isViewFocused:V,"aria-colindex":xe+1},ve.toString()))]},`week-${me[0]}`))})}))]})}function z$(e){return Oe("MuiPickersMonth",e)}const Ba=De("MuiPickersMonth",["root","monthButton","disabled","selected"]),Y$=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],U$=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},z$,o)},q$=le("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),G$=le("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ba.disabled}`]:t.disabled},{[`&.${Ba.selected}`]:t.selected}]})(({theme:e})=>Z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ba.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ba.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),K$=k.memo(function(t){const n=It({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":g,slots:v,slotProps:T}=n,P=We(n,Y$),x=k.useRef(null),S=U$(n);nn(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??G$,D=ct({elementType:C,externalSlotProps:T?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":g,onClick:A=>f(A,d),onKeyDown:A=>p(A,d),onFocus:A=>y(A,d),onBlur:A=>w(A,d)},ownerState:n,className:S.monthButton});return O.jsx(q$,Z({className:Se(S.root,r),ownerState:n},P,{children:O.jsx(C,Z({},D))}))});function X$(e){return Oe("MuiMonthCalendar",e)}De("MuiMonthCalendar",["root"]);const Z$=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Q$=e=>{const{classes:t}=e;return Ie({root:["root"]},X$,t)};function J$(e,t){const n=Nt(),o=ha(),r=It({props:e,name:t});return Z({disableFuture:!1,disablePast:!1},r,{minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate)})}const eV=le("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:pc,boxSizing:"border-box"}),Qv=k.forwardRef(function(t,n){const o=J$(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:g,autoFocus:v=!1,onMonthFocus:T,hasFocus:P,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:D,slots:A,slotProps:F}=o,z=We(o,Z$),{value:R,handleValueChange:$,timezone:K}=ah({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:ko}),X=hc(K),q=lo(),Y=Nt(),H=k.useMemo(()=>ko.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:vo.month}),[]),ae=o,N=Q$(ae),M=k.useMemo(()=>Y.getMonth(X),[Y,X]),V=k.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[W,ne]=k.useState(()=>V||Y.getMonth(H)),[oe,se]=Ro({name:"MonthCalendar",state:"hasFocus",controlled:P,default:v??!1}),j=Te(B=>{se(B),x&&x(B)}),J=k.useCallback(B=>{const re=Y.startOfMonth(f&&Y.isAfter(X,y)?X:y),Q=Y.startOfMonth(u&&Y.isBefore(X,p)?X:p),fe=Y.startOfMonth(B);return Y.isBefore(fe,re)||Y.isAfter(fe,Q)?!0:b?b(fe):!1},[u,f,p,y,X,b,Y]),ee=Te((B,re)=>{if(g)return;const Q=Y.setMonth(R??H,re);$(Q)}),te=Te(B=>{J(Y.setMonth(R??H,B))||(ne(B),j(!0),T&&T(B))});k.useEffect(()=>{ne(B=>V!==null&&B!==V?V:B)},[V]);const ce=Te((B,re)=>{switch(B.key){case"ArrowUp":te((12+re-3)%12),B.preventDefault();break;case"ArrowDown":te((12+re+3)%12),B.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),B.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),B.preventDefault();break}}),ie=Te((B,re)=>{te(re)}),he=Te((B,re)=>{W===re&&j(!1)});return O.jsx(eV,Z({ref:n,className:Se(N.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":D},z,{children:th(Y,R??H).map(B=>{const re=Y.getMonth(B),Q=Y.format(B,"monthShort"),fe=Y.format(B,"month"),me=re===V,Ce=d||J(B);return O.jsx(K$,{selected:me,value:re,onClick:ee,onKeyDown:ce,autoFocus:oe&&re===W,disabled:Ce,tabIndex:re===W&&!Ce?0:-1,onFocus:ie,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:A,slotProps:F,children:Q},Q)})}))});process.env.NODE_ENV!=="production"&&(Qv.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function tV(e){return Oe("MuiPickersYear",e)}const Ha=De("MuiPickersYear",["root","yearButton","selected","disabled"]),nV=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],oV=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},tV,o)},rV=le("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),sV=le("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Ha.disabled}`]:t.disabled},{[`&.${Ha.selected}`]:t.selected}]})(({theme:e})=>Z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ha.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ha.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),iV=k.memo(function(t){const n=It({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:g,slotProps:v}=n,T=We(n,nV),P=k.useRef(null),x=oV(n);nn(()=>{o&&P.current?.focus()},[o]);const S=g?.yearButton??sV,C=ct({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:P,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:D=>f(D,d),onKeyDown:D=>p(D,d),onFocus:D=>y(D,d),onBlur:D=>w(D,d)},ownerState:n,className:x.yearButton});return O.jsx(rV,Z({className:Se(x.root,r),ownerState:n},T,{children:O.jsx(S,Z({},C))}))});function aV(e){return Oe("MuiYearCalendar",e)}De("MuiYearCalendar",["root"]);const lV=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],cV=e=>{const{classes:t}=e;return Ie({root:["root"]},aV,t)};function dV(e,t){const n=Nt(),o=ha(),r=It({props:e,name:t});return Z({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate)})}const uV=le("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:pc,maxHeight:HF,boxSizing:"border-box",position:"relative"}),Jv=k.forwardRef(function(t,n){const o=dV(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:g,shouldDisableYear:v,onYearFocus:T,hasFocus:P,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:D,gridLabelId:A,slots:F,slotProps:z}=o,R=We(o,lV),{value:$,handleValueChange:K,timezone:X}=ah({name:"YearCalendar",timezone:D,value:a,defaultValue:l,onChange:b,valueManager:ko}),q=hc(X),Y=lo(),H=Nt(),ae=k.useMemo(()=>ko.getInitialReferenceValue({value:$,utils:H,props:o,timezone:X,referenceDate:d,granularity:vo.year}),[]),N=o,M=cV(N),V=k.useMemo(()=>H.getYear(q),[H,q]),W=k.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=k.useState(()=>W||H.getYear(ae)),[se,j]=Ro({name:"YearCalendar",state:"hasFocus",controlled:P,default:r??!1}),J=Te(ve=>{j(ve),x&&x(ve)}),ee=k.useCallback(ve=>{if(p&&H.isBeforeYear(ve,q)||f&&H.isAfterYear(ve,q)||w&&H.isBeforeYear(ve,w)||y&&H.isAfterYear(ve,y))return!0;if(!v)return!1;const xe=H.startOfYear(ve);return v(xe)},[f,p,y,w,q,v,H]),te=Te((ve,xe)=>{if(g)return;const $e=H.setYear($??ae,xe);K($e)}),ce=Te(ve=>{ee(H.setYear($??ae,ve))||(oe(ve),J(!0),T?.(ve))});k.useEffect(()=>{oe(ve=>W!==null&&ve!==W?W:ve)},[W]);const ie=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,B=Te((ve,xe)=>{switch(ve.key){case"ArrowUp":ce(xe-ie),ve.preventDefault();break;case"ArrowDown":ce(xe+ie),ve.preventDefault();break;case"ArrowLeft":ce(xe-he),ve.preventDefault();break;case"ArrowRight":ce(xe+he),ve.preventDefault();break}}),re=Te((ve,xe)=>{ce(xe)}),Q=Te((ve,xe)=>{ne===xe&&J(!1)}),fe=k.useRef(null),me=at(n,fe);k.useEffect(()=>{if(r||fe.current===null)return;const ve=fe.current.querySelector('[tabindex="0"]');if(!ve)return;const xe=ve.offsetHeight,$e=ve.offsetTop,Ae=fe.current.clientHeight,rt=fe.current.scrollTop,Pe=$e+xe;xe>Ae||$e<rt||(fe.current.scrollTop=Pe-Ae/2-xe/2)},[r]);const Ce=H.getYearRange([w,y]);return S==="desc"&&Ce.reverse(),O.jsx(uV,Z({ref:me,className:Se(M.root,i),ownerState:N,role:"radiogroup","aria-labelledby":A},R,{children:Ce.map(ve=>{const xe=H.getYear(ve),$e=xe===W,Ae=u||ee(ve);return O.jsx(iV,{selected:$e,value:xe,onClick:te,onKeyDown:B,autoFocus:se&&xe===ne,disabled:Ae,tabIndex:xe===ne&&!Ae?0:-1,onFocus:re,onBlur:Q,"aria-current":V===xe?"date":void 0,yearsPerRow:C,slots:F,slotProps:z,children:H.format(ve,"year")},H.format(ve,"year"))})}))});process.env.NODE_ENV!=="production"&&(Jv.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const hV=e=>Oe("MuiPickersCalendarHeader",e),fV=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function pV(e){return Oe("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const mV=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],gV=["ownerState"],yV=["ownerState"],vV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),bV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),gm=le(Fs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),wV=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},pV,t)},CV=k.forwardRef(function(t,n){const o=lo(),r=It({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:g,previousLabel:v,labelId:T}=r,P=We(r,mV),x=r,S=wV(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},D={isDisabled:w,isHidden:b,goTo:g,label:v},A=l?.previousIconButton??gm,F=ct({elementType:A,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:Z({},x,{hidden:D.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??gm,R=ct({elementType:z,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Z({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??rL,K=ct({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),X=We(K,gV),q=l?.rightArrowIcon??sL,Y=ct({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=We(Y,yV);return O.jsxs(vV,Z({ref:n,className:Se(S.root,a),ownerState:x},P,{children:[O.jsx(A,Z({},F,{children:o?O.jsx(q,Z({},H)):O.jsx($,Z({},X))})),i?O.jsx(Tn,{variant:"subtitle1",component:"span",id:T,children:i}):O.jsx(bV,{className:S.spacer,ownerState:x}),O.jsx(z,Z({},R,{children:o?O.jsx($,Z({},X)):O.jsx(q,Z({},H))}))]}))});function SV(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Nt();return k.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function _V(e,{disablePast:t,minDate:n,timezone:o}){const r=Nt();return k.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const xV=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],RV=["ownerState"],TV=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},hV,t)},kV=le("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),EV=le("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),PV=le("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),DV=le(Fs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${fV.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),OV=le(oL,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),eb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=It({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:g,view:v,reduceAnimations:T,views:P,labelId:x,className:S,timezone:C,format:D=`${r.formats.month} ${r.formats.year}`}=i,A=We(i,xV),F=i,z=TV(i),R=a?.switchViewButton??DV,$=ct({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??OV,X=ct({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=We(X,RV),Y=()=>b(r.addMonths(d,1),"left"),H=()=>b(r.addMonths(d,-1),"right"),ae=SV(d,{disableFuture:f,maxDate:y,timezone:C}),N=_V(d,{disablePast:p,minDate:w,timezone:C}),M=()=>{if(!(P.length===1||!g||u))if(P.length===2)g(P.find(W=>W!==v)||P[0]);else{const W=P.indexOf(v)!==0?0:1;g(P[W])}};if(P.length===1&&P[0]==="year")return null;const V=r.formatByString(d,D);return O.jsxs(kV,Z({},A,{ownerState:F,className:Se(z.root,S),ref:n,children:[O.jsxs(EV,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[O.jsx(qv,{reduceAnimations:T,transKey:V,children:O.jsx(PV,{id:x,ownerState:F,className:z.label,children:V})}),P.length>1&&!u&&O.jsx(R,Z({},$,{children:O.jsx(K,Z({},q))}))]}),O.jsx($r,{in:v==="day",children:O.jsx(CV,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:N,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(eb.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const MV=le("div")({overflow:"hidden",width:pc,maxHeight:lh,display:"flex",flexDirection:"column",margin:"0 auto"}),IV=e=>Oe("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const NV=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],AV=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},IV,t)};function FV(e,t){const n=Nt(),o=ha(),r=Mv(),i=It({props:e,name:t});return Z({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>O.jsx("span",{children:"..."})),minDate:Xn(n,i.minDate,o.minDate),maxDate:Xn(n,i.maxDate,o.maxDate)})}const LV=le(MV,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:lh}),$V=le(qv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),tb=k.forwardRef(function(t,n){const o=Nt(),r=fr(),i=FV(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:g,reduceAnimations:v,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:x,view:S,views:C,openTo:D,className:A,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:X,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:N,slotProps:M,loading:V,renderLoading:W,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:J}=i,ee=We(i,NV),{value:te,handleValueChange:ce,timezone:ie}=ah({name:"DateCalendar",timezone:J,value:d,defaultValue:u,onChange:w,valueManager:ko}),{view:he,setView:B,focusedView:re,setFocusedView:Q,goToNextView:fe,setValueAndGoToNextView:me}=Iv({view:S,views:C,openTo:D,onChange:ce,onViewChange:l,autoFocus:a,focusedView:X,onFocusedViewChange:q}),{referenceDate:Ce,calendarState:ve,changeFocusedDay:xe,changeMonth:$e,handleChangeMonth:Ae,isDateDisabled:rt,onMonthSwitchingAnimationEnd:Pe}=p$({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:g,minDate:R,maxDate:$,shouldDisableDate:T,disablePast:y,disableFuture:p,timezone:ie}),ft=F&&te||R,Kt=F&&te||$,st=`${r}-grid-label`,Yt=re!==null,Xt=N?.calendarHeader??eb,on=ct({elementType:Xt,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ve.currentMonth,onViewChange:B,onMonthChange:(pt,Qt)=>Ae({newMonth:pt,direction:Qt}),minDate:ft,maxDate:Kt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:ie,labelId:st},ownerState:i}),Ue=Te(pt=>{const Qt=o.startOfMonth(pt),vn=o.endOfMonth(pt),Jt=rt(pt)?_i({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:rt,timezone:ie}):pt;Jt?(me(Jt,"finish"),g?.(Qt)):(fe(),$e(Qt)),xe(Jt,!0)}),tt=Te(pt=>{const Qt=o.startOfYear(pt),vn=o.endOfYear(pt),Jt=rt(pt)?_i({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:rt,timezone:ie}):pt;Jt?(me(Jt,"finish"),b?.(Jt)):(fe(),$e(Qt)),xe(Jt,!0)}),Mn=Te(pt=>ce(pt&&Cl(o,pt,te??Ce),"finish",he));k.useEffect(()=>{te!=null&&o.isValid(te)&&$e(te)},[te]);const hn=i,Me=AV(hn),Be={disablePast:y,disableFuture:p,maxDate:$,minDate:R},vt={disableHighlightToday:K,readOnly:z,disabled:F,timezone:ie,gridLabelId:st,slots:N,slotProps:M},ln=k.useRef(he);k.useEffect(()=>{ln.current!==he&&(re===ln.current&&Q(he,!0),ln.current=he)},[re,Q,he]);const uo=k.useMemo(()=>[te],[te]);return O.jsxs(LV,Z({ref:n,className:Se(Me.root,A),ownerState:hn},ee,{children:[O.jsx(Xt,Z({},on,{slots:N,slotProps:M})),O.jsx($V,{reduceAnimations:v,className:Me.viewTransitionContainer,transKey:he,ownerState:hn,children:O.jsxs("div",{children:[he==="year"&&O.jsx(Jv,Z({},Be,vt,{value:te,onChange:tt,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("year",pt),yearsOrder:oe,yearsPerRow:se,referenceDate:Ce})),he==="month"&&O.jsx(Qv,Z({},Be,vt,{hasFocus:Yt,className:A,value:te,onChange:Ue,shouldDisableMonth:P,onFocusedViewChange:pt=>Q("month",pt),monthsPerRow:j,referenceDate:Ce})),he==="day"&&O.jsx(H$,Z({},ve,Be,vt,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:xe,reduceAnimations:v,selectedDays:uo,onSelectedDaysChange:Mn,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("day",pt),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:V,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(tb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const ws=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:T,reduceAnimations:P,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:D,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:V,timezone:W})=>O.jsx(tb,{view:e,onViewChange:t,views:n.filter(tm),focusedView:o&&tm(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:T,reduceAnimations:P,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:D,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:V,timezone:W}),nb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=Ev(t,"MuiDesktopDatePicker"),a=Z({day:ws,month:ws,year:ws},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:nh(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Z({openPickerIcon:iL,field:ph},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Al(i.slotProps?.field,u),Dv(i),{ref:n}),toolbar:Z({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=nL({props:l,valueManager:ko,valueType:"date",getOpenDialogAriaText:Rv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:fa});return d()});nb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const VV=le($y)({[`& .${Ci.container}`]:{outline:0},[`& .${Ci.paper}`]:{outline:0,minWidth:pc}}),jV=le(jy)({"&:first-of-type":{padding:0}});function WV(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??VV,l=r?.mobileTransition??$r;return O.jsx(a,Z({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:O.jsx(jV,{children:t})}))}const BV=["props","getOpenDialogAriaText"],HV=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=We(e,BV);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:g,inputRef:v,readOnly:T,disabled:P,localeText:x}=t,S=k.useRef(null),C=fr(),D=i?.toolbar?.hidden??!1,{open:A,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=Nv(Z({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),X=r.field,q=ct({elementType:X,externalSlotProps:i?.field,additionalProps:Z({},$,D&&{id:C},!(P||T)&&{onClick:F.onOpen,onKeyDown:bF(F.onOpen)},{readOnly:T??!0,disabled:P,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:g,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Z({},q.inputProps,{"aria-label":n($.value)});const Y=Z({textField:r.textField},q.slots),H=r.layout??ch;let ae=C;D&&(g?ae=`${C}-label`:ae=void 0);const N=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:C}),mobilePaper:Z({"aria-labelledby":ae},i?.mobilePaper)}),M=at(S,q.unstableFieldRef);return{renderPicker:()=>O.jsxs($v,{contextValue:K,localeText:x,children:[O.jsx(X,Z({},q,{slots:Y,slotProps:N,unstableFieldRef:M})),O.jsx(WV,Z({},F,{open:A,slots:r,slotProps:N,children:O.jsx(H,Z({},z,N?.layout,{slots:r,slotProps:N,children:R()}))}))]})}},ob=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=Ev(t,"MuiMobileDatePicker"),a=Z({day:ws,month:ws,year:ws},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:nh(r,i,!1),slots:Z({field:ph},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Al(i.slotProps?.field,u),Dv(i),{ref:n}),toolbar:Z({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=HV({props:l,valueManager:ko,valueType:"date",getOpenDialogAriaText:Rv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:fa});return d()});ob.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const zV=["desktopModeMediaQuery"],_l=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=wF}=o,i=We(o,zV);return sy(r,{defaultMatches:!0})?O.jsx(nb,Z({ref:n},i)):O.jsx(ob,Z({ref:n},i))});process.env.NODE_ENV!=="production"&&(_l.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Kd=le(Ls)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),YV=({setValue:e,value:t})=>{function n(r){const i=r?.format(Ir.db)||"",a={...t,1:i===Pd?Ps[1]:i};e(a),Zo(a)}function o(r){const i=r?.format(Ir.db)||"",a={...t,2:i===Pd?Ps[2]:i};e(a),Zo(a)}return O.jsxs(uc,{dateAdapter:vv,children:[O.jsx(Kd,{children:O.jsx(_l,{label:oo.from,onChange:n,...qd(t[1])})}),O.jsx(Kd,{children:O.jsx(_l,{label:oo.to,onChange:o,...qd(t[2])})})]})},bd=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Ir.db)||"",a={...n,1:i===Pd?Ps[1]:i};t(a),Zo(a)}return O.jsx(uc,{dateAdapter:vv,children:O.jsx(Kd,{children:O.jsx(_l,{label:e,onChange:o,...qd(n[1])})})})},ym={label:"",options:[]};function UV(){const{columnId:e,table:t}=wn,n=t?.grid;if(!n)return ym;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return ym;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function qV(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const GV=le(zu)({padding:0}),vm={Checkbox:GV},KV=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=UV(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),Zo(d)};return O.jsxs(la,{size:"small",children:[O.jsx(ca,{id:"column-filter-multiple-select-label",children:o}),O.jsxs(da,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:O.jsx(ks,{label:o}),renderValue:a=>a.join(", "),children:[O.jsxs(bl,{value:"All",children:[O.jsx(vm.Checkbox,{checked:n.indexOf("All")>-1}),O.jsx(zd,{primary:"All"})]},0),r.sort(qV).map(a=>O.jsxs(bl,{value:a,children:[O.jsx(vm.Checkbox,{checked:n.indexOf(a)>-1}),O.jsx(zd,{primary:a})]},a))]})]})},XV=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),Zo(i)}function o(r){const i={...t,2:r.target.value};e(i),Zo(i)}return O.jsxs(He.Fragment,{children:[O.jsx(Es,{label:oo.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),O.jsx(Es,{label:oo.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},wd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),Zo(i)}return O.jsx(Es,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},za=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),Zo(r)}return O.jsx(Es,{label:oo.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},ZV=({filterId:e,setValue:t,value:n})=>O.jsxs(He.Fragment,{children:[e===Ve.Boolean&&O.jsx(TA,{setValue:t,value:n}),e===Ve.TextEqual&&O.jsx(za,{setValue:t,value:n}),e===Ve.TextNotEqual&&O.jsx(za,{setValue:t,value:n}),e===Ve.TextContain&&O.jsx(za,{setValue:t,value:n}),e===Ve.TextNotContain&&O.jsx(za,{setValue:t,value:n}),e===Ve.MultipleSelect&&O.jsx(KV,{setValue:t,value:n}),e===Ve.NumberEqual&&O.jsx(wd,{label:oo.filter,setValue:t,value:n}),e===Ve.NumberFrom&&O.jsx(wd,{label:oo.from,setValue:t,value:n}),e===Ve.NumberTo&&O.jsx(wd,{label:oo.to,setValue:t,value:n}),e===Ve.NumberBetween&&O.jsx(XV,{setValue:t,value:n}),e===Ve.DateEqual&&O.jsx(bd,{label:oo.filter,setValue:t,value:n}),e===Ve.DateFrom&&O.jsx(bd,{label:oo.from,setValue:t,value:n}),e===Ve.DateTo&&O.jsx(bd,{label:oo.to,setValue:t,value:n}),e===Ve.DateBetween&&O.jsx(YV,{setValue:t,value:n})]}),QV=le(bl)({fontSize:"12px"}),bm={MenuItem:QV},JV=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>O.jsxs(la,{variant:"outlined",size:"small",children:[O.jsx(ca,{id:"reportType",children:e}),O.jsxs(da,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:u,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:d,width:l},children:[i&&O.jsx(bm.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>O.jsx(bm.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),ej={id:Ve.DateBetween,name:"Between"},tj={id:Ve.DateEqual,name:"Equal"},nj={id:Ve.DateFrom,name:"From"},oj={id:Ve.DateTo,name:"To"},rj={id:Ve.NumberBetween,name:"Between"},sj={id:Ve.NumberEqual,name:"Equal"},ij={id:Ve.NumberFrom,name:"From"},aj={id:Ve.NumberTo,name:"To"},lj={id:Ve.TextContain,name:"Contains"},cj={id:Ve.TextEqual,name:"Equal"},dj={id:Ve.TextNotContain,name:"Does not contain"},uj={id:Ve.TextNotEqual,name:"Not equal"},wm=[sj,ij,aj,rj],hj={[sn.Boolean]:[],[sn.Date]:[tj,nj,oj,ej],[sn.MultipleSelect]:[],[sn.Number]:wm,[sn.NumberFormatted]:wm,[sn.Text]:[lj,dj,cj,uj]},fj=({filterId:e,setFilterId:t})=>{const n=hj[wn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:l}=wn;if(!a||!l)return;const d=l.filter.args,u=i.target.value;d.columnFilters&&(l.filter.args={...d,columnFilters:{...d.columnFilters,[a]:{...d.columnFilters[a],filterId:u}}},t(u))}return o?O.jsx(JV,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},pj=le(Ls)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),mj={Wrapper:pj},gj=({Portal:e})=>{const[t,n]=He.useState(Ps),[o,r]=He.useState(Ve.TextContain),[i,a]=He.useState(!1);return wA(a),bA(i,r,n),i?O.jsx(e,{setIsOpened:a,children:O.jsxs(mj.Wrapper,{children:[O.jsx(fj,{filterId:o,setFilterId:r}),O.jsx(ZV,{filterId:o,setValue:n,value:t}),O.jsx(_A,{setIsOpened:a,setValue:n,value:t})]})}):null};function yj(e){He.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(yv);if(!n)return;const{x:o,y:r}=Cn;gv(n,o,r)},0)}return Cn.subscribe(t),()=>{Cn.unsubscribe(t)}},[])}const vj=le("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),bj=le("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),wj=le("span")({backgroundColor:"#1E456F"}),un={Ul:vj,Li:bj,Icon:wj},Cj=({clientId:e,clientName:t,setIsOpened:n})=>{const o=()=>{const r=Cn.table,i=r?.grid;if(!r||!i){n(!1);return}r.downloadManager.download(r,e,t),n(!1)};return O.jsxs(un.Li,{onClick:o,children:[O.jsx(un.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},Sj=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-link"}),"Group"]})};function _j(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const xj=({setIsOpened:e})=>{const t=Cn.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,ur.highlightAllColumns(o,t.id),e(!1)}return _j(t)?O.jsxs(He.Fragment,{children:[O.jsx(vl,{}),O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},Rj=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},Tj=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},kj=({setIsOpened:e})=>{function t(){const n=Cn.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return O.jsxs(un.Li,{onClick:t,children:[O.jsx(un.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},Ej=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},Pj=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=Cn.table;r?.printer.print(r,e,t),n(!1)}return O.jsxs(un.Li,{onClick:o,children:[O.jsx(un.Icon,{className:"sgi sgi-printer"}),"Print"]})},Dj=({Portal:e,clientId:t,clientName:n})=>{const[o,r]=He.useState(!1);return yj(r),o?O.jsx(e,{setIsOpened:r,children:O.jsxs(un.Ul,{children:[O.jsx(Pj,{clientId:t,clientName:n,setIsOpened:r}),O.jsx(kj,{setIsOpened:r}),O.jsx(Cj,{clientId:t,clientName:n,setIsOpened:r}),O.jsx(xj,{setIsOpened:r}),O.jsx(Rj,{setIsOpened:r}),O.jsx(Sj,{setIsOpened:r}),O.jsx(Ej,{setIsOpened:r}),O.jsx(Tj,{setIsOpened:r})]})}):null};exports.ColumnFilters=gj;exports.ColumnSorter=mv;exports.ContextMenu=Dj;exports.DecoratorColumnFilter=$N;exports.DecoratorFilter=tv;exports.DefaultPrinter=cv;exports.DeletedRowsFilter=PI;exports.EColumnFiltersGroup=sn;exports.ESortType=jo;exports.Filter=ev;exports.SlickTable=zN;exports.SlickgridTable=ON;exports.TotalCalculator=gA;exports.columnCheckboxSelector=MN;exports.columnIsEdited=NN;exports.commitCurrentEdit=uv;exports.formatterGroupTotals=dA;exports.getDisplayedRows=hv;exports.getNextId=dv;exports.handleHeaderButtons=nv;exports.headerButtons=ur;exports.openColumnFilter=OI;exports.openContextMenu=fv;exports.useListenIfTablesWereEdited=KN;
|
|
326
|
+
`))},[JSON.stringify(p)]));const w=Nt(),b=jr(),{isOpen:g,setIsOpen:v}=MF(e),{timezone:T,value:P,handleValueChange:x}=ih({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=k.useState(()=>{let j;return P!==void 0?j=P:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:P,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:D}=Ov({props:e,validator:r,timezone:T,value:S.draft,onError:e.onError}),A=Te(j=>{const J={action:j,dateState:S,hasChanged:B=>!t.areValuesEqual(w,j.value,B),isControlled:y,closeOnSelect:u},ee=IF(J),te=NF(J),ce=AF(J);C(B=>Z({},B,{draft:j.value,lastPublishedValue:ee?j.value:B.lastPublishedValue,lastCommittedValue:te?j.value:B.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ie=null;const he=()=>(ie||(ie={validationError:j.name==="setValueFromField"?j.context.validationError:D(j.value)},j.name==="setValueFromShortcut"&&(ie.shortcut=j.shortcut)),ie);ee&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(P!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(w,S.lastControlledValue,P))){const j=t.areValuesEqual(w,S.draft,P);C(J=>Z({},J,{lastControlledValue:P},j?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{A({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{A({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{A({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{A({value:t.getTodayValue(w,T,n),name:"setValueFromAction",pickerAction:"today"})}),X=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,J="partial")=>A({name:"setValueFromView",value:j,selectionState:J})),H=Te((j,J,ee)=>A({name:"setValueFromShortcut",value:j,changeImportance:J,shortcut:ee})),ae=Te((j,J)=>A({name:"setValueFromField",value:j,context:J})),N={onClear:F,onAccept:z,onDismiss:R,onCancel:$,onSetToday:K,onOpen:X,onClose:q},M={value:S.draft,onChange:ae},V=k.useMemo(()=>t.cleanValue(w,S.draft),[w,t,S.draft]),W={value:V,onChange:Y,onClose:q,open:g},oe=Z({},N,{value:V,onChange:Y,onSelectShortcut:H,isValid:j=>{const J=r({adapter:b,value:j,timezone:T,props:e});return!t.hasError(J)}}),se=k.useMemo(()=>({onOpen:X,onClose:q,open:g}),[g,q,X]);return{open:g,fieldProps:M,viewProps:W,layoutProps:oe,actions:N,contextValue:se}};let vd=!1;function Iv({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(vd||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),vd=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),vd=!0)));const d=k.useRef(n),u=k.useRef(r),f=k.useRef(r.includes(n)?n:r[0]),[p,y]=Ro({name:"useViews",state:"view",controlled:o,default:f.current}),w=k.useRef(i?p:null),[b,g]=Ro({name:"useViews",state:"focusedView",controlled:a,default:w.current});k.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(A=>!r.includes(A)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),T=r[v-1]??null,P=r[v+1]??null,x=Te((A,F)=>{g(F?A:z=>A===z?null:z),l?.(A,F)}),S=Te(A=>{x(A,!0),A!==p&&(y(A),t&&t(A))}),C=Te(()=>{P&&S(P)}),D=Te((A,F,z)=>{const R=F==="finish",$=z?r.indexOf(z)<r.length-1:!!P;if(e(A,R&&$?"partial":F,z),z&&z!==p){const X=r[r.indexOf(z)+1];X&&S(X)}else R&&C()});return{view:p,setView:S,focusedView:b,setFocusedView:x,nextView:P,previousView:T,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:D}}const LF=["className","sx"],$F=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,g=Be(e,LF),{view:v,setView:T,defaultView:P,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=Iv({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:D,viewModeLookup:A}=k.useMemo(()=>f.reduce((q,Y)=>{let H;return w[Y]!=null?H="UI":H="field",q.viewModeLookup[Y]=H,H==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[w,f]),F=k.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&AA(Y)?q+1:q,0),[w,f]),z=A[v],R=Te(()=>z==="UI"),[$,K]=k.useState(z==="UI"?v:null);return $!==v&&A[v]==="UI"&&K(v),nn(()=>{z==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),nn(()=>{if(!l)return;let q=v;z==="field"&&$!=null&&(q=$),q!==P&&A[q]==="UI"&&A[P]==="UI"&&(q=P),q!==v&&T(q),S(q,!0)},[l]),{hasUIView:D,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:T},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Z({},g,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:T,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(w,$,Y):q(Y)}}};function fm(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const VF=(e,t)=>{const[n,o]=k.useState(fm);return nn(()=>{const i=()=>{o(fm())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),vF(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},jF=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=VF(n.views,r),a=lo();return{layoutProps:Z({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function WF(e){const{props:t,pickerValueResponse:n}=e;return k.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Nv=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&OF(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=FF({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=$F({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=jF({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=WF({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function Av(e){return Oe("MuiPickersLayout",e)}const _r=De("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),BF=["onAccept","onClear","onCancel","onSetToday","actions"];function Fv(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=Be(e,BF),l=er();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return O.jsx(cs,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return O.jsx(cs,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return O.jsx(cs,{onClick:t,children:l.okButtonLabel},u);case"today":return O.jsx(cs,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return O.jsx(Vy,Z({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(Fv.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Yi=36,fc=2,pc=320,HF=280,lh=336,zF=["items","changeImportance","isLandscape","onChange","isValid"],YF=["getValue"];function Lv(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=Be(e,zF);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=Be(l,YF);const f=d({isValid:r});return Z({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return O.jsx(Gu,Z({dense:!0,sx:[{maxHeight:lh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>O.jsx(Hy,{children:O.jsx(Oy,Z({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Lv.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function UF(e){return e.view!==null}const qF=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Av,t)},GF=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:g,children:v,slots:T,slotProps:P}=e,x=qF(e),S=T?.actionBar??Fv,C=ct({elementType:S,externalSlotProps:P?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Z({},e,{wrapperVariant:t})}),D=O.jsx(S,Z({},C)),A=T?.toolbar,F=ct({elementType:A,externalSlotProps:P?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:b,readOnly:g},className:x.toolbar,ownerState:Z({},e,{wrapperVariant:t})}),z=UF(F)&&A?O.jsx(A,Z({},F)):null,R=v,$=T?.tabs,K=a&&$?O.jsx($,Z({view:a,onViewChange:d,className:x.tabs},P?.tabs)):null,X=T?.shortcuts??Lv,q=ct({elementType:X,externalSlotProps:P?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&X?O.jsx(X,Z({},q)):null;return{toolbar:z,content:R,tabs:K,actionBar:D,shortcuts:Y}},KF=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Av,n)},XF=le("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${_r.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${_r.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${_r.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${_r.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${_r.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${_r.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${_r.shortcuts}`]:{gridColumn:3}}}]}),ZF=le("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),ch=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=GF(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,w=KF(o);return O.jsxs(XF,{ref:n,sx:u,className:Se(w.root,f),ownerState:o,children:[p?d:r,p?r:d,O.jsx(ZF,{className:w.contentWrapper,children:y==="desktop"?O.jsxs(k.Fragment,{children:[i,a]}):O.jsxs(k.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(ch.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const QF=k.createContext(null);function $v(e){const{contextValue:t,localeText:n,children:o}=e;return O.jsx(QF.Provider,{value:t,children:O.jsx(uc,{localeText:n,children:o})})}const JF=["props","getOpenDialogAriaText"],eL=["ownerState"],tL=["ownerState"],nL=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Be(e,JF);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:g,inputRef:v,readOnly:T,disabled:P,autoFocus:x,localeText:S,reduceAnimations:C}=t,D=k.useRef(null),A=k.useRef(null),F=fr(),z=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:X,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:H,contextValue:ae,ownerState:N}=Nv(Z({},o,{props:t,fieldRef:A,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??qu,V=ct({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),W=Be(V,eL),ne=r.openPickerButton??Fs,oe=ct({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:P||T,onClick:R?$.onClose:$.onOpen,"aria-label":n(H.value),edge:W.position},ownerState:t}),se=Be(oe,tL),j=r.openPickerIcon,J=ct({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:N}),ee=r.field,te=ct({elementType:ee,externalSlotProps:i?.field,additionalProps:Z({},H,z&&{id:F},{readOnly:T,disabled:P,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:g,name:b,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Z({},te.InputProps,{ref:D},!t.disableOpenPicker&&{[`${W.position}Adornment`]:O.jsx(M,Z({},W,{children:O.jsx(ne,Z({},se,{children:O.jsx(j,Z({},J))}))}))}));const ce=Z({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),ie=r.layout??ch;let he=F;z&&(g?he=`${F}-label`:he=void 0);const B=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:F}),popper:Z({"aria-labelledby":he},i?.popper)}),re=at(A,te.unstableFieldRef);return{renderPicker:()=>O.jsxs($v,{contextValue:ae,localeText:S,children:[O.jsx(ee,Z({},te,{slots:ce,slotProps:B,unstableFieldRef:re})),O.jsx(DF,Z({role:"dialog",placement:"bottom-start",anchorEl:D.current},$,{open:R,slots:r,slotProps:B,shouldRestoreFocus:Y,reduceAnimations:C,children:O.jsx(ie,Z({},X,B?.layout,{slots:r,slotProps:B,children:q()}))}))]})}},oL=an(O.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rL=an(O.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),sL=an(O.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),iL=an(O.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");an(O.jsxs(k.Fragment,{children:[O.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");an(O.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");an(O.jsxs(k.Fragment,{children:[O.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),O.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const aL=an(O.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"}),"Clear"),lL=({utils:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return r},cL=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},dL=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},uL=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=oh(e,a),u=xv(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(u)w=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=d.maxLength,p&&(y=rh(Cv(Fr(y,r),w),r))}return Z({},d,{format:a,maxLength:w,value:y,placeholder:dL(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},hL=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=w=>o.find(b=>b.start<=w&&b.end>=w);let y=0;for(;y<n.length;){const w=p(y),b=w!=null,g=d.exec(n.slice(y))?.[1];if(!b&&g!=null&&u.test(g)){let v=g;for(;v.length>0;){const T=f.exec(v)[1];v=v.slice(T.length),i.push(uL(Z({},e,{now:r,token:T,startSeparator:a}))),a=""}y+=g.length}else{const v=n[y];b&&w?.start===y||w?.end===y||(i.length===0?a+=v:i[i.length-1].endSeparator+=v),y+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},fL=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),pm=e=>{let t=lL(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=cL(Z({},e,{expandedFormat:t})),o=hL(Z({},e,{expandedFormat:t,escapedParts:n}));return fL(Z({},e,{sections:o}))},pL=e=>{const t=Nt(),n=er(),o=jr(),r=lo(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:T,shouldRespectLeadingZeros:P=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:D,handleValueChange:A}=ih({timezone:x,value:f,defaultValue:p,onChange:w,valueManager:i}),F=k.useMemo(()=>WA(t),[t]),z=k.useMemo(()=>UA(t,F,C),[t,F,C]),R=k.useCallback((j,J=null)=>a.getSectionsFromValue(t,j,J,ee=>pm({utils:t,localeText:n,localizedDigits:F,format:b,date:ee,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,b,n,F,r,P,t,g,S]),[$,K]=k.useState(()=>{const j=R(D);am(j,l);const J={sections:j,value:D,referenceValue:i.emptyValue,tempValueStrAndroid:null},ee=LA(j),te=i.getInitialReferenceValue({referenceDate:y,value:D,utils:t,props:u,granularity:ee,timezone:C});return Z({},J,{referenceValue:te})}),[X,q]=Ro({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),T?.(j)},H=k.useMemo(()=>Gd(X,$.sections),[X,$.sections]),ae=H==="all"?0:H,N=({value:j,referenceValue:J,sections:ee})=>{if(K(ce=>Z({},ce,{sections:ee,value:j,referenceValue:J,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};A(j,te)},M=(j,J)=>{const ee=[...$.sections];return ee[j]=Z({},ee[j],{value:J,modified:!0}),ee},V=()=>{N({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},W=()=>{if(ae==null)return;const j=$.sections[ae],J=a.getActiveDateManager(t,$,j),te=J.getSections($.sections).filter(B=>B.value!=="").length===(j.value===""?0:1),ce=M(ae,""),ie=te?null:t.getInvalidDate(),he=J.getNewValuesFromNewActiveDate(ie);N(Z({},he,{sections:ce}))},ne=j=>{const J=(ce,ie)=>{const he=t.parse(ce,b);if(he==null||!t.isValid(he))return null;const B=pm({utils:t,localeText:n,localizedDigits:F,format:b,date:he,formatDensity:g,shouldRespectLeadingZeros:P,enableAccessibleFieldDOMStructure:S,isRtl:r});return cm(t,he,B,ie,!1)},ee=a.parseValueStr(j,$.referenceValue,J),te=a.updateReferenceValue(t,ee,$.referenceValue);N({value:ee,referenceValue:te,sections:R(ee,$.sections)})},oe=({activeSection:j,newSectionValue:J,shouldGoToNextSection:ee})=>{ee&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,J),ie=te.getSections(ce),he=HA(t,ie,F);let B,re;if(he!=null&&t.isValid(he)){const Q=cm(t,he,ie,te.referenceDate,!0);B=te.getNewValuesFromNewActiveDate(Q),re=!0}else B=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?N(Z({},B,{sections:ce})):K(Q=>Z({},Q,B,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(J=>Z({},J,{tempValueStrAndroid:j}));return k.useEffect(()=>{const j=R($.value);am(j,l),K(J=>Z({},J,{sections:j}))},[b,t.locale,r]),k.useEffect(()=>{let j;i.areValuesEqual(t,$.value,D)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,D):j=!0,j&&K(J=>Z({},J,{value:D,referenceValue:a.updateReferenceValue(t,D,J.referenceValue),sections:R(D)}))},[D]),{state:$,activeSectionIndex:ae,parsedSelectedSections:H,setSelectedSections:Y,clearValue:V,clearActiveSection:W,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:z,localizedDigits:F,timezone:C}},mL=5e3,ss=e=>e.saveQuery!=null,gL=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Nt(),[l,d]=k.useState(null),u=Te(()=>d(null));k.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),k.useEffect(()=>{if(l!=null){const b=setTimeout(()=>u(),mL);return()=>{clearTimeout(b)}}return()=>{}},[l,u]);const f=({keyPressed:b,sectionIndex:g},v,T)=>{const P=b.toLowerCase(),x=e[g];if(l!=null&&(!T||T(l.value))&&l.sectionIndex===g){const C=`${l.value}${P}`,D=v(C,x);if(!ss(D))return d({sectionIndex:g,value:C,sectionType:x.type}),D}const S=v(P,x);return ss(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:g,value:P,sectionType:x.type}),ss(S)?null:S)},p=b=>{const g=(P,x,S)=>{const C=x.filter(D=>D.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(P,x,S,C)=>{const D=A=>wv(a,i,x.type,A);if(x.contentType==="letter")return g(x.format,D(x.format),P);if(S&&C!=null&&oh(a,S).contentType==="letter"){const A=D(S),F=g(S,A,P);return ss(F)?{saveQuery:!1}:Z({},F,{sectionValue:C(F.sectionValue,A)})}return{saveQuery:!1}};return f(b,(P,x)=>{switch(x.type){case"month":{const S=C=>sm(a,C,a.formats.month,x.format);return v(P,x,a.formats.month,S)}case"weekDay":{const S=(C,D)=>D.indexOf(C).toString();return v(P,x,a.formats.weekday,S)}case"meridiem":return v(P,x);default:return{saveQuery:!1}}})},y=b=>{const g=(T,P)=>{const x=Fr(T,o),S=Number(x),C=n[P.type]({currentDate:null,format:P.format,contentType:P.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const D=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:Sv(a,S,C,o,P),shouldGoToNextSection:D}};return f(b,(T,P)=>{if(P.contentType==="digit"||P.contentType==="digit-with-letter")return g(T,P);if(P.type==="month"){xv(a,"digit","month","MM");const x=g(T,{type:P.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ss(x))return x;const S=sm(a,x.sectionValue,"MM",P.format);return Z({},x,{sectionValue:S})}if(P.type==="weekDay"){const x=g(T,P);if(ss(x))return x;const S=dc(a,P.format)[Number(x.sectionValue)-1];return Z({},x,{sectionValue:S})}return{saveQuery:!1}},T=>rm(T,o))};return{applyCharacterEditing:Te(b=>{const g=e[b.sectionIndex],T=rm(b.keyPressed,o)?y(Z({},b,{keyPressed:rh(b.keyPressed,o)})):p(b);if(T==null){r(null);return}t({activeSection:g,newSectionValue:T.sectionValue,shouldGoToNextSection:T.shouldGoToNextSection})}),resetCharacterQuery:u}},yL=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:g,state:v,clearActiveSection:T,clearValue:P,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:D,sectionsValueBoundaries:A}=e,F=k.useRef(null),z=at(o,F),R=er(),$=Nt(),K=fr(),[X,q]=k.useState(!1),Y=k.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(g==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),X&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains(Nn(document)))return;const Q=new window.Range;let fe;g==="all"?fe=F.current.getRoot():v.sections[g].type==="empty"?fe=F.current.getSectionContainer(g):fe=F.current.getSectionContent(g),Q.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Q)},getActiveSectionIndexFromDOM:()=>{const re=Nn(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Q=Gd(re,v.sections);q(!0),F.current.getSectionContent(Q).focus()},setSelectedSections:re=>{if(!F.current)return;const Q=Gd(re,v.sections);q((Q==="all"?0:Q)!==null),b(re)},isFieldFocused:()=>{const re=Nn(document);return!!F.current&&F.current.getRoot().contains(re)}}),[g,b,v.sections,X]),H=Te(re=>{if(!F.current)return;const Q=v.sections[re];F.current.getSectionContent(re).innerHTML=Q.value||Q.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Q)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Q),g==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let me=0,Ce=0;for(;Ce<fe&&me<v.sections.length;){const ve=v.sections[me];me+=1,Ce+=`${ve.startSeparator}${ve.value||ve.placeholder}${ve.endSeparator}`.length}b(me-1)}):X?F.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),N=Te(re=>{if(l?.(re),!F.current||g!=="all")return;const fe=re.target.textContent??"";F.current.getRoot().innerHTML=v.sections.map(me=>`${me.startSeparator}${me.value||me.placeholder}${me.endSeparator}`).join(""),Y.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(w(),P(),b("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||g!=="all"){re.preventDefault();return}const Q=re.clipboardData.getData("text");re.preventDefault(),w(),S(Q)}),V=Te((...re)=>{if(a?.(...re),X||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement(Nn(document))!=null||b(C.startIndex)}),W=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Q=Nn(document);!F.current.getRoot().contains(Q)&&(q(!1),b(null))})}),ne=Te(re=>Q=>{Q.isDefaultPrevented()||b(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{b(re)}),j=Te(re=>{if(re.preventDefault(),n||t||typeof g!="number")return;const Q=v.sections[g],fe=re.clipboardData.getData("text"),me=/^[a-zA-Z]+$/.test(fe),Ce=/^[0-9]+$/.test(fe),ve=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Q.contentType==="letter"&&me||Q.contentType==="digit"&&Ce||Q.contentType==="digit-with-letter"&&ve?(w(),x({activeSection:Q,newSectionValue:fe,shouldGoToNextSection:!0})):!me&&!Ce&&(w(),S(fe))}),J=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),ee=Te(re=>{if(!F.current)return;const Q=re.target,fe=Q.textContent??"",me=F.current.getSectionIndexFromDOMElement(Q),Ce=v.sections[me];if(n||!F.current){H(me);return}if(fe.length===0){if(Ce.value===""){H(me);return}const ve=re.nativeEvent.inputType;if(ve==="insertParagraph"||ve==="insertLineBreak"){H(me);return}w(),T();return}y({keyPressed:fe,sectionIndex:me}),H(me)});nn(()=>{if(!(!X||!F.current)){if(g==="all")F.current.getRoot().focus();else if(typeof g=="number"){const re=F.current.getSectionContent(g);re&&re.focus()}}},[g,X]);const te=k.useMemo(()=>v.sections.reduce((re,Q)=>(re[Q.type]=A[Q.type]({currentDate:null,contentType:Q.contentType,format:Q.format}),re),{}),[A,v.sections]),ce=g==="all",ie=k.useMemo(()=>v.sections.map((re,Q)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Q,onClick:ne(Q)},content:{tabIndex:ce||Q>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":ZA(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?XA(re,$):R.empty,"aria-label":R[re.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(k.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:ee,onPaste:j,onFocus:se(Q),onDragOver:J,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,J,ee,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),B=k.useMemo(()=>D?"":p.getV7HiddenInputValueFromSections(v.sections),[D,v.sections,p]);return k.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
327
|
+
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??X,sectionListRef:z,onBlur:W,onClick:ae,onFocus:V,onInput:N,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:ie,tabIndex:g===0?-1:0,contentEditable:ce,value:B,onChange:he,areAllSectionsEmpty:D}}},hs=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),vL=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=sh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=hs(u).length,p=u.length,y=hs(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Z({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},bL=e=>{const t=lo(),n=k.useRef(),o=k.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:g,valueManager:v,applyCharacterEditing:T,resetCharacterQuery:P,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:D,setTempAndroidValueStr:A,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=k.useRef(null),X=at(d,K),q=k.useMemo(()=>vL(b.sections,$,t),[b.sections,$,t]),Y=k.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==Nn(document))return;const ee=K.current.scrollTop;if(y==="all")K.current.select();else{const te=q[y],ce=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,ie=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||ie!==K.current.selectionEnd)&&K.current===Nn(document)&&K.current.setSelectionRange(ce,ie),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===Nn(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==ie)&&Y.syncSelectionToDOM()})}K.current.scrollTop=ee},getActiveSectionIndexFromDOM:()=>{const ee=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(ee===0&&te===0)return null;const ce=ee<=q[0].startInInput?1:q.findIndex(ie=>ie.startInInput-ie.startSeparator.length>ee);return ce===-1?q.length-1:ce-1},focusField:(ee=0)=>{K.current?.focus(),F(ee)},setSelectedSections:ee=>F(ee),isFieldFocused:()=>K.current===Nn(document)}),[K,y,q,F]),H=()=>{const ee=K.current.selectionStart??0;let te;ee<=q[0].startInInput||ee>=q[q.length-1].endInInput?te=1:te=q.findIndex(ie=>ie.startInInput-ie.startSeparator.length>ee);const ce=te===-1?q.length-1:te-1;F(ce)},ae=Te((...ee)=>{r?.(...ee);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),N=Te((ee,...te)=>{ee.isDefaultPrevented()||(i?.(ee,...te),H())}),M=Te(ee=>{if(a?.(ee),ee.preventDefault(),f||p)return;const te=ee.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],ie=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),B=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&ie||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&B){P(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(ie||he)return}P(),S(te)}),V=Te((...ee)=>{l?.(...ee),F(null)}),W=Te(ee=>{if(f)return;const te=ee.target.value;if(te===""){P(),D();return}const ce=ee.nativeEvent.data,ie=ce&&ce.length>1,he=ie?ce:te,B=hs(he);if(w==null||ie){S(ie?ce:B);return}let re;if(y==="all"&&B.length===1)re=B;else{const Q=hs(g.getV6InputValueFromSections(q,$,t));let fe=-1,me=-1;for(let $e=0;$e<Q.length;$e+=1)fe===-1&&Q[$e]!==B[$e]&&(fe=$e),me===-1&&Q[Q.length-$e-1]!==B[B.length-$e-1]&&(me=$e);const Ce=q[w];if(fe<Ce.start||Q.length-me-1>Ce.end)return;const xe=B.length-Q.length+Ce.end-hs(Ce.endSeparator||"").length;re=B.slice(Ce.start+hs(Ce.startSeparator||"").length,xe)}if(re.length===0){GA()&&A(he),P(),C();return}T({keyPressed:re,sectionIndex:w})}),ne=k.useMemo(()=>u!==void 0?u:g.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,g,z,v.emptyValue,$,t]),oe=k.useMemo(()=>b.tempValueStrAndroid??g.getV6InputValueFromSections(b.sections,$,t),[b.sections,g,b.tempValueStrAndroid,$,t]);k.useEffect(()=>(K.current&&K.current===Nn(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=k.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),J=!(K.current&&K.current===Nn(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:V,onClick:N,onFocus:ae,onPaste:M,inputRef:X,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:J?"":oe,onChange:W}}},wL=e=>{const t=Nt(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,g=lo(),v=pL(e),{state:T,activeSectionIndex:P,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:D,updateSectionValue:A,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=gL({sections:T.sections,updateSectionValue:A,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:X}=K,q=w.areValuesEqual(t,T.value,w.emptyValue),Y=i?yL:bL,H=k.useMemo(()=>KA(T.sections,g&&!i),[T.sections,g,i]),{returnedValue:ae,interactions:N}=Y(Z({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(H.startIndex);else if(x==="all")S(H.endIndex);else{const J=H.neighbors[x].rightIndex;J!==null&&S(J)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(H.endIndex);else if(x==="all")S(H.startIndex);else{const J=H.neighbors[x].leftIndex;J!==null&&S(J)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():D(),X();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||P==null)break;const J=T.sections[P],ee=y.getActiveDateManager(t,T,J),te=BA(t,$,J,j.key,z,R,ee.date,{minutesStep:r});A({activeSection:J,newSectionValue:te,shouldGoToNextSection:!1});break}}});nn(()=>{N.syncSelectionToDOM()});const{hasValidationError:V}=Ov({props:n,validator:b,timezone:$,value:T.value,onError:n.onError}),W=k.useMemo(()=>u!==void 0?u:V,[V,u]);k.useEffect(()=>{!W&&P==null&&X()},[T.referenceValue,P,W]),k.useEffect(()=>{T.tempValueStrAndroid!=null&&P!=null&&(X(),D())},[T.sections]),k.useImperativeHandle(o,()=>({getSections:()=>T.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));const ne=Te((j,...J)=>{j.preventDefault(),p?.(j,...J),C(),N.isFieldFocused()?S(H.startIndex):N.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:W,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Z({},e.forwardedProps,oe,se,ae)},CL=["clearable","onClear","InputProps","sx","slots","slotProps"],SL=["ownerState"],_L=e=>{const t=er(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=Be(e,CL),u=a?.clearButton??Fs,f=ct({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=Be(f,SL),y=a?.clearIcon??aL,w=ct({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Z({},d,{InputProps:Z({},r,{endAdornment:O.jsxs(k.Fragment,{children:[n&&O.jsx(qu,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:O.jsx(u,Z({},p,{onClick:o,children:O.jsx(y,Z({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},xL=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],RL=(e,t)=>k.useMemo(()=>{const n=Z({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return xL.forEach(r),Pv.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),TL=e=>{const t=Nt(),n=ha();return Z({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Xn(t,e.minDate,n.minDate),maxDate:Xn(t,e.maxDate,n.maxDate)})},kL=e=>{const t=TL(e),{forwardedProps:n,internalProps:o}=RL(t,"date");return wL({forwardedProps:n,internalProps:o,valueManager:ko,fieldValueManager:JA,validator:fa,valueType:"date"})};function EL(e){return Oe("MuiPickersTextField",e)}De("MuiPickersTextField",["root","focused","disabled","error","required"]);function PL(e){return Oe("MuiPickersInputBase",e)}const bs=De("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function DL(e){return Oe("MuiPickersSectionList",e)}const ai=De("MuiPickersSectionList",["root","section","sectionContent"]),OL=["slots","slotProps","elements","sectionListRef"],Vv=le("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),jv=le("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Wv=le("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Bv=le("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),ML=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},DL,t)};function Hv(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??jv,a=ct({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??Bv,d=ct({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Wv,f=ct({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=ct({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return O.jsxs(i,Z({},a,{children:[O.jsx(u,Z({},f)),O.jsx(l,Z({},d)),O.jsx(u,Z({},p))]}))}process.env.NODE_ENV!=="production"&&(Hv.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const zv=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=Be(o,OL),u=ML(o),f=k.useRef(null),p=at(n,f),y=g=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return f.current};k.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(g){return y("getSectionContainer").querySelector(`.${ai.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return y("getSectionContent").querySelector(`.${ai.section}[data-sectionindex="${g}"] .${ai.sectionContent}`)},getSectionIndexFromDOMElement(g){const v=y("getSectionIndexFromDOMElement");if(g==null||!v.contains(g))return null;let T=null;return g.classList.contains(ai.section)?T=g:g.classList.contains(ai.sectionContent)&&(T=g.parentElement),T==null?null:Number(T.dataset.sectionindex)}}));const w=r?.root??Vv,b=ct({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return O.jsx(w,Z({},b,{children:b.contentEditable?a.map(({content:g,before:v,after:T})=>`${v.children}${g.children}${T.children}`).join(""):O.jsx(k.Fragment,{children:a.map((g,v)=>O.jsx(Hv,{slots:r,slotProps:i,element:g,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(zv.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const IL=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],NL=e=>Math.round(e*1e5)/1e5,mc=le("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${NL(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),dh=le(Vv,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:r})=>!t&&!n&&!o&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),AL=le(jv,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),FL=le(Bv,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),LL=le(Wv,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),$L=le("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Z({},aT)),VL=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${be(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,PL,r)},gc=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:g,onInput:v,onPaste:T,onKeyDown:P,name:x,readOnly:S,inputProps:C,inputRef:D,sectionListRef:A}=o,F=Be(o,IL),z=k.useRef(null),R=at(n,z),$=at(C?.ref,D),K=lo(),X=On();if(!X)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=V=>{if(X.disabled){V.stopPropagation();return}X.onFocus?.(V)};k.useEffect(()=>{X&&X.setAdornedStart(!!f)},[X,f]),k.useEffect(()=>{X&&(i?X.onEmpty():X.onFilled())},[X,i]);const Y=Z({},o,X,{isRtl:K}),H=VL(Y),ae=y?.root||mc,N=ct({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":X.error,ref:R},className:H.root,ownerState:Y}),M=y?.input||dh;return O.jsxs(ae,Z({},N,{children:[f,O.jsx(zv,{sectionListRef:A,elements:r,contentEditable:b,tabIndex:g,className:H.sectionsContainer,onFocus:q,onBlur:X.onBlur,onInput:v,onPaste:T,onKeyDown:P,slots:{root:M,section:AL,sectionContent:FL,sectionSeparator:LL},slotProps:{root:{ownerState:Y},sectionContent:{className:bs.sectionContent},sectionSeparator:({position:V})=>({className:V==="before"?bs.sectionBefore:bs.sectionAfter})}}),u,p?p(Z({},X)):null,O.jsx($L,Z({name:x,className:H.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:X.required,disabled:X.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(gc.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function jL(e){return Oe("MuiPickersOutlinedInput",e)}const no=Z({},bs,De("MuiPickersOutlinedInput",["root","notchedOutline","input"])),WL=["children","className","label","notched","shrink"],BL=le("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),mm=le("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),HL=le("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function zL(e){const{className:t,label:n}=e,o=Be(e,WL),r=n!=null&&n!=="",i=Z({},e,{withLabel:r});return O.jsx(BL,Z({"aria-hidden":!0,className:t},o,{ownerState:i,children:O.jsx(HL,{ownerState:i,children:r?O.jsx(mm,{children:n}):O.jsx(mm,{className:"notranslate",children:""})})}))}const YL=["label","autoFocus","ownerState","notched"],UL=le(mc,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${no.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${no.focused} .${no.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${no.disabled}`]:{[`& .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${no.error} .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${no.focused}:not(.${no.error}) .${no.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),qL=le(dh,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),GL=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jL,t);return Z({},t,o)},uh=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=Be(o,YL),d=On(),u=Z({},o,i,d,{color:d?.color||"primary"}),f=GL(u);return O.jsx(gc,Z({slots:{root:UL,input:qL},renderSuffix:p=>O.jsx(zL,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?O.jsxs(k.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(uh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});uh.muiName="Input";function KL(e){return Oe("MuiPickersFilledInput",e)}const xr=Z({},bs,De("MuiPickersFilledInput",["root","underline","input"])),XL=["label","autoFocus","disableUnderline","ownerState"],ZL=le(mc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Za(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${xr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${xr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xr.disabled}, .${xr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xr.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),QL=le(dh,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),JL=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},KL,t);return Z({},t,r)},hh=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Be(o,XL),d=On(),u=Z({},o,a,d,{color:d?.color||"primary"}),f=JL(u);return O.jsx(gc,Z({slots:{root:ZL,input:QL},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(hh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});hh.muiName="Input";function e$(e){return Oe("MuiPickersFilledInput",e)}const li=Z({},bs,De("MuiPickersInput",["root","input"])),t$=["label","autoFocus","disableUnderline","ownerState"],n$=le(mc,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${li.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${li.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${li.disabled}, .${li.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${li.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),o$=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},e$,t);return Z({},t,r)},fh=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Be(o,t$),d=On(),u=Z({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=o$(u);return O.jsx(gc,Z({slots:{root:n$}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(fh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});fh.muiName="Input";const r$=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],s$={standard:fh,filled:hh,outlined:uh},i$=le(la,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),a$=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},EL,o)},Yv=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:g,elements:v,areAllSectionsEmpty:T,onClick:P,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:D,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:X,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:N,label:M,InputLabelProps:V}=o,W=Be(o,r$),ne=k.useRef(null),oe=at(n,ne),se=fr(Y),j=ae&&se?`${se}-helper-text`:void 0,J=M&&se?`${se}-label`:void 0,ee=Z({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=a$(ee),ce=s$[f];return O.jsxs(i$,Z({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:ee},W,{children:[O.jsx(ca,Z({htmlFor:se,id:J},V,{children:M})),O.jsx(ce,Z({elements:v,areAllSectionsEmpty:T,onClick:P,onKeyDown:x,onKeyUp:S,onInput:D,onPaste:C,endAdornment:A,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:X,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:g,label:M,name:H,role:"group","aria-labelledby":J},y)),ae&&O.jsx(Uu,Z({id:j},N,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(Yv.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const l$=["enableAccessibleFieldDOMStructure"],c$=["InputProps","readOnly"],d$=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],u$=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Be(e,l$);if(t){const{InputProps:p,readOnly:y}=n,w=Be(n,c$);return Z({},w,{InputProps:Z({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=Be(n,d$);return Z({},f,{InputProps:Z({},l??{},{readOnly:a}),inputProps:Z({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},h$=["slots","slotProps","InputProps","inputProps"],ph=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=Be(o,h$),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?Yv:Es),p=ct({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Z({},l,p.inputProps),p.InputProps=Z({},a,p.InputProps);const y=kL(p),w=u$(y),b=_L(Z({},w,{slots:r,slotProps:i}));return O.jsx(f,Z({},b))});process.env.NODE_ENV!=="production"&&(ph.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Wt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const Uv=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=jr();return k.useCallback(u=>fa({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},f$=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Z({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=r.newTimezone;if(n.getTimezone(o.currentMonth)===i)return o;let a=n.setTimezone(o.currentMonth,i);return n.getMonth(a)!==n.getMonth(o.currentMonth)&&(a=n.setMonth(a,n.getMonth(o.currentMonth))),Z({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Z({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const i=r.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return Z({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:i&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},p$=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Nt(),w=k.useRef(f$(!!u,i,y)).current,b=k.useMemo(()=>ko.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:vo.day}),[n,p]),[g,v]=k.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});k.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const T=k.useCallback(D=>{v(Z({type:"changeMonth"},D)),d&&d(D.newMonth)},[d]),P=k.useCallback(D=>{const A=D;y.isSameMonth(A,g.currentMonth)||T({newMonth:y.startOfMonth(A),direction:y.isAfterDay(A,g.currentMonth)?"left":"right"})},[g.currentMonth,T,y]),x=Uv({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=k.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((D,A)=>{x(D)||v({type:"changeFocusedDay",focusedDay:D,withoutMonthSwitchingAnimation:A})});return{referenceDate:b,calendarState:g,changeMonth:P,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:T}},m$=e=>Oe("MuiPickersFadeTransitionGroup",e);De("MuiPickersFadeTransitionGroup",["root"]);const g$=e=>{const{classes:t}=e;return Ie({root:["root"]},m$,t)},y$=le(ra,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function qv(e){const t=It({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=g$(t),l=Ns();return r?n:O.jsx(y$,{className:Se(a.root,o),children:O.jsx($r,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function v$(e){return Oe("MuiPickersDay",e)}const Rr=De("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),b$=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],w$=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},v$,d)},Gv=({theme:e})=>Z({},e.typography.caption,{width:Yi,height:Yi,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Rr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Rr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Rr.disabled}:not(.${Rr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rr.disabled}&.${Rr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${fc}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Rr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Kv=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},C$=le(dr,{name:"MuiPickersDay",slot:"Root",overridesResolver:Kv})(Gv),S$=le("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Kv})(({theme:e})=>Z({},Gv({theme:e}),{opacity:0,pointerEvents:"none"})),ci=()=>{},Xv=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=ci,onBlur:b=ci,onKeyDown:g=ci,onMouseDown:v=ci,onMouseEnter:T=ci,outsideCurrentMonth:P,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:D=!1}=o,A=Be(o,b$),F=Z({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:D}),z=w$(F),R=Nt(),$=k.useRef(null),K=at($,n);nn(()=>{r&&!l&&!f&&!P&&$.current.focus()},[r,l,f,P]);const X=Y=>{v(Y),P&&Y.preventDefault()},q=Y=>{l||y(a),P&&Y.currentTarget.focus(),p&&p(Y)};return P&&!S?O.jsx(S$,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:A.role}):O.jsx(C$,Z({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>g(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>T(Y,a),onClick:q,onMouseDown:X},A,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Xv.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const _$=k.memo(Xv),x$=e=>Oe("MuiPickersSlideTransition",e),Bn=De("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),R$=["children","className","reduceAnimations","slideDirection","transKey","classes"],T$=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,x$,t)},k$=le(ra,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Bn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Bn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Bn.slideEnterActive}`]:t.slideEnterActive},{[`.${Bn.slideExit}`]:t.slideExit},{[`.${Bn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Bn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Bn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Bn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Bn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Bn.slideExit}`]:{transform:"translate(0%)"},[`& .${Bn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Bn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function E$(e){const t=It({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=Be(t,R$),l=T$(t),d=Ns();if(r)return O.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return O.jsx(k$,{className:Se(l.root,o),childFactory:f=>k.cloneElement(f,{classNames:u}),role:"presentation",children:O.jsx(Iu,Z({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const P$=e=>Oe("MuiDayCalendar",e);De("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const D$=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],O$=["ownerState"],M$=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},P$,t)},Zv=(Yi+fc*2)*6,I$=le("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N$=le("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),A$=le(Tn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),F$=le(Tn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),L$=le(Tn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Z({},e.typography.caption,{width:Yi,height:Yi,padding:0,margin:`0 ${fc}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),$$=le("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Zv}),V$=le(E$,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Zv}),j$=le("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),W$=le("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${fc}px 0`,display:"flex",justifyContent:"center"});function B$(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=Be(e,D$);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:g}=t,v=Nt(),T=hc(g),P=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,T),C=w?.day??_$,D=ct({elementType:C,externalSlotProps:b?.day,additionalProps:Z({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Z({},t,{day:n,selected:x})}),A=Be(D,O$),F=k.useMemo(()=>u||i(n),[u,i,n]),z=k.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=k.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=k.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return O.jsx(C,Z({},A,{day:n,disabled:F,autoFocus:l&&P,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:P?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function H$(e){const t=It({props:e,name:"MuiDayCalendar"}),n=Nt(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>O.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:g,disablePast:v,disableFuture:T,minDate:P,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:D,dayOfWeekFormatter:A=me=>n.format(me,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:z,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:X,timezone:q}=t,Y=hc(q),H=M$(t),ae=lo(),N=Uv({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:D,minDate:P,maxDate:x,disablePast:v,disableFuture:T,timezone:q}),M=er(),[V,W]=Ro({name:"DayCalendar",state:"hasFocus",controlled:F,default:X??!1}),[ne,oe]=k.useState(()=>l||Y),se=Te(me=>{p||u(me)}),j=me=>{N(me)||(o(me),oe(me),z?.(!0),W(!0))},J=Te((me,Ce)=>{switch(me.key){case"ArrowUp":j(n.addDays(Ce,-7)),me.preventDefault();break;case"ArrowDown":j(n.addDays(Ce,7)),me.preventDefault();break;case"ArrowLeft":{const ve=n.addDays(Ce,ae?1:-1),xe=n.addMonths(Ce,ae?1:-1),$e=_i({utils:n,date:ve,minDate:ae?ve:n.startOfMonth(xe),maxDate:ae?n.endOfMonth(xe):ve,isDateDisabled:N,timezone:q});j($e||ve),me.preventDefault();break}case"ArrowRight":{const ve=n.addDays(Ce,ae?-1:1),xe=n.addMonths(Ce,ae?-1:1),$e=_i({utils:n,date:ve,minDate:ae?n.startOfMonth(xe):ve,maxDate:ae?ve:n.endOfMonth(xe),isDateDisabled:N,timezone:q});j($e||ve),me.preventDefault();break}case"Home":j(n.startOfWeek(Ce)),me.preventDefault();break;case"End":j(n.endOfWeek(Ce)),me.preventDefault();break;case"PageUp":j(n.addMonths(Ce,1)),me.preventDefault();break;case"PageDown":j(n.addMonths(Ce,-1)),me.preventDefault();break}}),ee=Te((me,Ce)=>j(Ce)),te=Te((me,Ce)=>{V&&n.isSameDay(ne,Ce)&&z?.(!1)}),ce=n.getMonth(i),ie=n.getYear(i),he=k.useMemo(()=>a.filter(me=>!!me).map(me=>n.startOfDay(me)),[n,a]),B=`${ie}-${ce}`,re=k.useMemo(()=>k.createRef(),[B]),Q=k.useMemo(()=>{const me=n.startOfMonth(i),Ce=n.endOfMonth(i);return N(ne)||n.isAfterDay(ne,Ce)||n.isBeforeDay(ne,me)?_i({utils:n,date:ne,minDate:me,maxDate:Ce,disablePast:v,disableFuture:T,isDateDisabled:N,timezone:q}):ne},[i,T,v,ne,N,n,q]),fe=k.useMemo(()=>{const me=n.getWeekArray(i);let Ce=n.addMonths(i,1);for(;K&&me.length<K;){const ve=n.getWeekArray(Ce),xe=n.isSameDay(me[me.length-1][0],ve[0][0]);ve.slice(xe?1:0).forEach($e=>{me.length<K&&me.push($e)}),Ce=n.addMonths(Ce,1)}return me},[i,K,n]);return O.jsxs(I$,{role:"grid","aria-labelledby":R,className:H.root,children:[O.jsxs(N$,{role:"row",className:H.header,children:[$&&O.jsx(F$,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),IA(n,Y).map((me,Ce)=>O.jsx(A$,{variant:"caption",role:"columnheader","aria-label":n.format(me,"weekday"),className:H.weekDayLabel,children:A(me)},Ce.toString()))]}),d?O.jsx($$,{className:H.loadingContainer,children:w()}):O.jsx(V$,Z({transKey:B,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,H.slideTransition)},g,{nodeRef:re,children:O.jsx(j$,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((me,Ce)=>O.jsxs(W$,{role:"row",className:H.weekContainer,"aria-rowindex":Ce+1,children:[$&&O.jsx(L$,{className:H.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(me[0])),children:M.calendarWeekNumberText(n.getWeekNumber(me[0]))}),me.map((ve,xe)=>O.jsx(B$,{parentProps:t,day:ve,selectedDays:he,focusableDay:Q,onKeyDown:J,onFocus:ee,onBlur:te,onDaySelect:se,isDateDisabled:N,currentMonthNumber:ce,isViewFocused:V,"aria-colindex":xe+1},ve.toString()))]},`week-${me[0]}`))})}))]})}function z$(e){return Oe("MuiPickersMonth",e)}const Ba=De("MuiPickersMonth",["root","monthButton","disabled","selected"]),Y$=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],U$=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},z$,o)},q$=le("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),G$=le("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ba.disabled}`]:t.disabled},{[`&.${Ba.selected}`]:t.selected}]})(({theme:e})=>Z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ba.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ba.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),K$=k.memo(function(t){const n=It({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":g,slots:v,slotProps:T}=n,P=Be(n,Y$),x=k.useRef(null),S=U$(n);nn(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??G$,D=ct({elementType:C,externalSlotProps:T?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":g,onClick:A=>f(A,d),onKeyDown:A=>p(A,d),onFocus:A=>y(A,d),onBlur:A=>w(A,d)},ownerState:n,className:S.monthButton});return O.jsx(q$,Z({className:Se(S.root,r),ownerState:n},P,{children:O.jsx(C,Z({},D))}))});function X$(e){return Oe("MuiMonthCalendar",e)}De("MuiMonthCalendar",["root"]);const Z$=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Q$=e=>{const{classes:t}=e;return Ie({root:["root"]},X$,t)};function J$(e,t){const n=Nt(),o=ha(),r=It({props:e,name:t});return Z({disableFuture:!1,disablePast:!1},r,{minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate)})}const eV=le("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:pc,boxSizing:"border-box"}),Qv=k.forwardRef(function(t,n){const o=J$(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:g,autoFocus:v=!1,onMonthFocus:T,hasFocus:P,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:D,slots:A,slotProps:F}=o,z=Be(o,Z$),{value:R,handleValueChange:$,timezone:K}=ah({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:ko}),X=hc(K),q=lo(),Y=Nt(),H=k.useMemo(()=>ko.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:vo.month}),[]),ae=o,N=Q$(ae),M=k.useMemo(()=>Y.getMonth(X),[Y,X]),V=k.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[W,ne]=k.useState(()=>V||Y.getMonth(H)),[oe,se]=Ro({name:"MonthCalendar",state:"hasFocus",controlled:P,default:v??!1}),j=Te(B=>{se(B),x&&x(B)}),J=k.useCallback(B=>{const re=Y.startOfMonth(f&&Y.isAfter(X,y)?X:y),Q=Y.startOfMonth(u&&Y.isBefore(X,p)?X:p),fe=Y.startOfMonth(B);return Y.isBefore(fe,re)||Y.isAfter(fe,Q)?!0:b?b(fe):!1},[u,f,p,y,X,b,Y]),ee=Te((B,re)=>{if(g)return;const Q=Y.setMonth(R??H,re);$(Q)}),te=Te(B=>{J(Y.setMonth(R??H,B))||(ne(B),j(!0),T&&T(B))});k.useEffect(()=>{ne(B=>V!==null&&B!==V?V:B)},[V]);const ce=Te((B,re)=>{switch(B.key){case"ArrowUp":te((12+re-3)%12),B.preventDefault();break;case"ArrowDown":te((12+re+3)%12),B.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),B.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),B.preventDefault();break}}),ie=Te((B,re)=>{te(re)}),he=Te((B,re)=>{W===re&&j(!1)});return O.jsx(eV,Z({ref:n,className:Se(N.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":D},z,{children:th(Y,R??H).map(B=>{const re=Y.getMonth(B),Q=Y.format(B,"monthShort"),fe=Y.format(B,"month"),me=re===V,Ce=d||J(B);return O.jsx(K$,{selected:me,value:re,onClick:ee,onKeyDown:ce,autoFocus:oe&&re===W,disabled:Ce,tabIndex:re===W&&!Ce?0:-1,onFocus:ie,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:A,slotProps:F,children:Q},Q)})}))});process.env.NODE_ENV!=="production"&&(Qv.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function tV(e){return Oe("MuiPickersYear",e)}const Ha=De("MuiPickersYear",["root","yearButton","selected","disabled"]),nV=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],oV=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},tV,o)},rV=le("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),sV=le("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Ha.disabled}`]:t.disabled},{[`&.${Ha.selected}`]:t.selected}]})(({theme:e})=>Z({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ha.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ha.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),iV=k.memo(function(t){const n=It({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:g,slotProps:v}=n,T=Be(n,nV),P=k.useRef(null),x=oV(n);nn(()=>{o&&P.current?.focus()},[o]);const S=g?.yearButton??sV,C=ct({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:P,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:D=>f(D,d),onKeyDown:D=>p(D,d),onFocus:D=>y(D,d),onBlur:D=>w(D,d)},ownerState:n,className:x.yearButton});return O.jsx(rV,Z({className:Se(x.root,r),ownerState:n},T,{children:O.jsx(S,Z({},C))}))});function aV(e){return Oe("MuiYearCalendar",e)}De("MuiYearCalendar",["root"]);const lV=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],cV=e=>{const{classes:t}=e;return Ie({root:["root"]},aV,t)};function dV(e,t){const n=Nt(),o=ha(),r=It({props:e,name:t});return Z({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Xn(n,r.minDate,o.minDate),maxDate:Xn(n,r.maxDate,o.maxDate)})}const uV=le("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:pc,maxHeight:HF,boxSizing:"border-box",position:"relative"}),Jv=k.forwardRef(function(t,n){const o=dV(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:g,shouldDisableYear:v,onYearFocus:T,hasFocus:P,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:D,gridLabelId:A,slots:F,slotProps:z}=o,R=Be(o,lV),{value:$,handleValueChange:K,timezone:X}=ah({name:"YearCalendar",timezone:D,value:a,defaultValue:l,onChange:b,valueManager:ko}),q=hc(X),Y=lo(),H=Nt(),ae=k.useMemo(()=>ko.getInitialReferenceValue({value:$,utils:H,props:o,timezone:X,referenceDate:d,granularity:vo.year}),[]),N=o,M=cV(N),V=k.useMemo(()=>H.getYear(q),[H,q]),W=k.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=k.useState(()=>W||H.getYear(ae)),[se,j]=Ro({name:"YearCalendar",state:"hasFocus",controlled:P,default:r??!1}),J=Te(ve=>{j(ve),x&&x(ve)}),ee=k.useCallback(ve=>{if(p&&H.isBeforeYear(ve,q)||f&&H.isAfterYear(ve,q)||w&&H.isBeforeYear(ve,w)||y&&H.isAfterYear(ve,y))return!0;if(!v)return!1;const xe=H.startOfYear(ve);return v(xe)},[f,p,y,w,q,v,H]),te=Te((ve,xe)=>{if(g)return;const $e=H.setYear($??ae,xe);K($e)}),ce=Te(ve=>{ee(H.setYear($??ae,ve))||(oe(ve),J(!0),T?.(ve))});k.useEffect(()=>{oe(ve=>W!==null&&ve!==W?W:ve)},[W]);const ie=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,B=Te((ve,xe)=>{switch(ve.key){case"ArrowUp":ce(xe-ie),ve.preventDefault();break;case"ArrowDown":ce(xe+ie),ve.preventDefault();break;case"ArrowLeft":ce(xe-he),ve.preventDefault();break;case"ArrowRight":ce(xe+he),ve.preventDefault();break}}),re=Te((ve,xe)=>{ce(xe)}),Q=Te((ve,xe)=>{ne===xe&&J(!1)}),fe=k.useRef(null),me=at(n,fe);k.useEffect(()=>{if(r||fe.current===null)return;const ve=fe.current.querySelector('[tabindex="0"]');if(!ve)return;const xe=ve.offsetHeight,$e=ve.offsetTop,Ae=fe.current.clientHeight,rt=fe.current.scrollTop,Pe=$e+xe;xe>Ae||$e<rt||(fe.current.scrollTop=Pe-Ae/2-xe/2)},[r]);const Ce=H.getYearRange([w,y]);return S==="desc"&&Ce.reverse(),O.jsx(uV,Z({ref:me,className:Se(M.root,i),ownerState:N,role:"radiogroup","aria-labelledby":A},R,{children:Ce.map(ve=>{const xe=H.getYear(ve),$e=xe===W,Ae=u||ee(ve);return O.jsx(iV,{selected:$e,value:xe,onClick:te,onKeyDown:B,autoFocus:se&&xe===ne,disabled:Ae,tabIndex:xe===ne&&!Ae?0:-1,onFocus:re,onBlur:Q,"aria-current":V===xe?"date":void 0,yearsPerRow:C,slots:F,slotProps:z,children:H.format(ve,"year")},H.format(ve,"year"))})}))});process.env.NODE_ENV!=="production"&&(Jv.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const hV=e=>Oe("MuiPickersCalendarHeader",e),fV=De("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function pV(e){return Oe("MuiPickersArrowSwitcher",e)}De("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const mV=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],gV=["ownerState"],yV=["ownerState"],vV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),bV=le("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),gm=le(Fs,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),wV=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},pV,t)},CV=k.forwardRef(function(t,n){const o=lo(),r=It({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:g,previousLabel:v,labelId:T}=r,P=Be(r,mV),x=r,S=wV(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},D={isDisabled:w,isHidden:b,goTo:g,label:v},A=l?.previousIconButton??gm,F=ct({elementType:A,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:Z({},x,{hidden:D.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??gm,R=ct({elementType:z,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Z({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??rL,K=ct({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),X=Be(K,gV),q=l?.rightArrowIcon??sL,Y=ct({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=Be(Y,yV);return O.jsxs(vV,Z({ref:n,className:Se(S.root,a),ownerState:x},P,{children:[O.jsx(A,Z({},F,{children:o?O.jsx(q,Z({},H)):O.jsx($,Z({},X))})),i?O.jsx(Tn,{variant:"subtitle1",component:"span",id:T,children:i}):O.jsx(bV,{className:S.spacer,ownerState:x}),O.jsx(z,Z({},R,{children:o?O.jsx($,Z({},X)):O.jsx(q,Z({},H))}))]}))});function SV(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Nt();return k.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function _V(e,{disablePast:t,minDate:n,timezone:o}){const r=Nt();return k.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const xV=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],RV=["ownerState"],TV=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},hV,t)},kV=le("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),EV=le("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),PV=le("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),DV=le(Fs,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${fV.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),OV=le(oL,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),eb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=It({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:g,view:v,reduceAnimations:T,views:P,labelId:x,className:S,timezone:C,format:D=`${r.formats.month} ${r.formats.year}`}=i,A=Be(i,xV),F=i,z=TV(i),R=a?.switchViewButton??DV,$=ct({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??OV,X=ct({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=Be(X,RV),Y=()=>b(r.addMonths(d,1),"left"),H=()=>b(r.addMonths(d,-1),"right"),ae=SV(d,{disableFuture:f,maxDate:y,timezone:C}),N=_V(d,{disablePast:p,minDate:w,timezone:C}),M=()=>{if(!(P.length===1||!g||u))if(P.length===2)g(P.find(W=>W!==v)||P[0]);else{const W=P.indexOf(v)!==0?0:1;g(P[W])}};if(P.length===1&&P[0]==="year")return null;const V=r.formatByString(d,D);return O.jsxs(kV,Z({},A,{ownerState:F,className:Se(z.root,S),ref:n,children:[O.jsxs(EV,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[O.jsx(qv,{reduceAnimations:T,transKey:V,children:O.jsx(PV,{id:x,ownerState:F,className:z.label,children:V})}),P.length>1&&!u&&O.jsx(R,Z({},$,{children:O.jsx(K,Z({},q))}))]}),O.jsx($r,{in:v==="day",children:O.jsx(CV,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:N,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(eb.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const MV=le("div")({overflow:"hidden",width:pc,maxHeight:lh,display:"flex",flexDirection:"column",margin:"0 auto"}),IV=e=>Oe("MuiDateCalendar",e);De("MuiDateCalendar",["root","viewTransitionContainer"]);const NV=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],AV=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},IV,t)};function FV(e,t){const n=Nt(),o=ha(),r=Mv(),i=It({props:e,name:t});return Z({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>O.jsx("span",{children:"..."})),minDate:Xn(n,i.minDate,o.minDate),maxDate:Xn(n,i.maxDate,o.maxDate)})}const LV=le(MV,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:lh}),$V=le(qv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),tb=k.forwardRef(function(t,n){const o=Nt(),r=fr(),i=FV(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:g,reduceAnimations:v,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:x,view:S,views:C,openTo:D,className:A,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:X,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:N,slotProps:M,loading:V,renderLoading:W,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:J}=i,ee=Be(i,NV),{value:te,handleValueChange:ce,timezone:ie}=ah({name:"DateCalendar",timezone:J,value:d,defaultValue:u,onChange:w,valueManager:ko}),{view:he,setView:B,focusedView:re,setFocusedView:Q,goToNextView:fe,setValueAndGoToNextView:me}=Iv({view:S,views:C,openTo:D,onChange:ce,onViewChange:l,autoFocus:a,focusedView:X,onFocusedViewChange:q}),{referenceDate:Ce,calendarState:ve,changeFocusedDay:xe,changeMonth:$e,handleChangeMonth:Ae,isDateDisabled:rt,onMonthSwitchingAnimationEnd:Pe}=p$({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:g,minDate:R,maxDate:$,shouldDisableDate:T,disablePast:y,disableFuture:p,timezone:ie}),ft=F&&te||R,Kt=F&&te||$,st=`${r}-grid-label`,Yt=re!==null,Xt=N?.calendarHeader??eb,on=ct({elementType:Xt,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ve.currentMonth,onViewChange:B,onMonthChange:(pt,Qt)=>Ae({newMonth:pt,direction:Qt}),minDate:ft,maxDate:Kt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:ie,labelId:st},ownerState:i}),Ue=Te(pt=>{const Qt=o.startOfMonth(pt),vn=o.endOfMonth(pt),Jt=rt(pt)?_i({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:rt,timezone:ie}):pt;Jt?(me(Jt,"finish"),g?.(Qt)):(fe(),$e(Qt)),xe(Jt,!0)}),tt=Te(pt=>{const Qt=o.startOfYear(pt),vn=o.endOfYear(pt),Jt=rt(pt)?_i({utils:o,date:pt,minDate:o.isBefore(R,Qt)?Qt:R,maxDate:o.isAfter($,vn)?vn:$,disablePast:y,disableFuture:p,isDateDisabled:rt,timezone:ie}):pt;Jt?(me(Jt,"finish"),b?.(Jt)):(fe(),$e(Qt)),xe(Jt,!0)}),Mn=Te(pt=>ce(pt&&Cl(o,pt,te??Ce),"finish",he));k.useEffect(()=>{te!=null&&o.isValid(te)&&$e(te)},[te]);const hn=i,Me=AV(hn),He={disablePast:y,disableFuture:p,maxDate:$,minDate:R},vt={disableHighlightToday:K,readOnly:z,disabled:F,timezone:ie,gridLabelId:st,slots:N,slotProps:M},ln=k.useRef(he);k.useEffect(()=>{ln.current!==he&&(re===ln.current&&Q(he,!0),ln.current=he)},[re,Q,he]);const uo=k.useMemo(()=>[te],[te]);return O.jsxs(LV,Z({ref:n,className:Se(Me.root,A),ownerState:hn},ee,{children:[O.jsx(Xt,Z({},on,{slots:N,slotProps:M})),O.jsx($V,{reduceAnimations:v,className:Me.viewTransitionContainer,transKey:he,ownerState:hn,children:O.jsxs("div",{children:[he==="year"&&O.jsx(Jv,Z({},He,vt,{value:te,onChange:tt,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("year",pt),yearsOrder:oe,yearsPerRow:se,referenceDate:Ce})),he==="month"&&O.jsx(Qv,Z({},He,vt,{hasFocus:Yt,className:A,value:te,onChange:Ue,shouldDisableMonth:P,onFocusedViewChange:pt=>Q("month",pt),monthsPerRow:j,referenceDate:Ce})),he==="day"&&O.jsx(H$,Z({},ve,He,vt,{onMonthSwitchingAnimationEnd:Pe,onFocusedDayChange:xe,reduceAnimations:v,selectedDays:uo,onSelectedDaysChange:Mn,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:x,hasFocus:Yt,onFocusedViewChange:pt=>Q("day",pt),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:V,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(tb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const ws=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:T,reduceAnimations:P,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:D,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:V,timezone:W})=>O.jsx(tb,{view:e,onViewChange:t,views:n.filter(tm),focusedView:o&&tm(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:T,reduceAnimations:P,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:D,yearsPerRow:A,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:X,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:N,fixedWeekNumber:M,displayWeekNumber:V,timezone:W}),nb=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=Ev(t,"MuiDesktopDatePicker"),a=Z({day:ws,month:ws,year:ws},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:nh(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Z({openPickerIcon:iL,field:ph},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Al(i.slotProps?.field,u),Dv(i),{ref:n}),toolbar:Z({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=nL({props:l,valueManager:ko,valueType:"date",getOpenDialogAriaText:Rv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:fa});return d()});nb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const VV=le($y)({[`& .${Ci.container}`]:{outline:0},[`& .${Ci.paper}`]:{outline:0,minWidth:pc}}),jV=le(jy)({"&:first-of-type":{padding:0}});function WV(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??VV,l=r?.mobileTransition??$r;return O.jsx(a,Z({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:O.jsx(jV,{children:t})}))}const BV=["props","getOpenDialogAriaText"],HV=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Be(e,BV);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:g,inputRef:v,readOnly:T,disabled:P,localeText:x}=t,S=k.useRef(null),C=fr(),D=i?.toolbar?.hidden??!1,{open:A,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=Nv(Z({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),X=r.field,q=ct({elementType:X,externalSlotProps:i?.field,additionalProps:Z({},$,D&&{id:C},!(P||T)&&{onClick:F.onOpen,onKeyDown:bF(F.onOpen)},{readOnly:T??!0,disabled:P,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:g,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Z({},q.inputProps,{"aria-label":n($.value)});const Y=Z({textField:r.textField},q.slots),H=r.layout??ch;let ae=C;D&&(g?ae=`${C}-label`:ae=void 0);const N=Z({},i,{toolbar:Z({},i?.toolbar,{titleId:C}),mobilePaper:Z({"aria-labelledby":ae},i?.mobilePaper)}),M=at(S,q.unstableFieldRef);return{renderPicker:()=>O.jsxs($v,{contextValue:K,localeText:x,children:[O.jsx(X,Z({},q,{slots:Y,slotProps:N,unstableFieldRef:M})),O.jsx(WV,Z({},F,{open:A,slots:r,slotProps:N,children:O.jsx(H,Z({},z,N?.layout,{slots:r,slotProps:N,children:R()}))}))]})}},ob=k.forwardRef(function(t,n){const o=er(),r=Nt(),i=Ev(t,"MuiMobileDatePicker"),a=Z({day:ws,month:ws,year:ws},i.viewRenderers),l=Z({},i,{viewRenderers:a,format:nh(r,i,!1),slots:Z({field:ph},i.slots),slotProps:Z({},i.slotProps,{field:u=>Z({},Al(i.slotProps?.field,u),Dv(i),{ref:n}),toolbar:Z({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=HV({props:l,valueManager:ko,valueType:"date",getOpenDialogAriaText:Rv({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:fa});return d()});ob.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const zV=["desktopModeMediaQuery"],_l=k.forwardRef(function(t,n){const o=It({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=wF}=o,i=Be(o,zV);return sy(r,{defaultMatches:!0})?O.jsx(nb,Z({ref:n},i)):O.jsx(ob,Z({ref:n},i))});process.env.NODE_ENV!=="production"&&(_l.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:Wt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Kd=le(Ls)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),YV=({setValue:e,value:t})=>{function n(r){const i=r?.format(Ir.db)||"",a={...t,1:i===Pd?Ps[1]:i};e(a),Zo(a)}function o(r){const i=r?.format(Ir.db)||"",a={...t,2:i===Pd?Ps[2]:i};e(a),Zo(a)}return O.jsxs(uc,{dateAdapter:vv,children:[O.jsx(Kd,{children:O.jsx(_l,{label:oo.from,onChange:n,...qd(t[1])})}),O.jsx(Kd,{children:O.jsx(_l,{label:oo.to,onChange:o,...qd(t[2])})})]})},bd=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Ir.db)||"",a={...n,1:i===Pd?Ps[1]:i};t(a),Zo(a)}return O.jsx(uc,{dateAdapter:vv,children:O.jsx(Kd,{children:O.jsx(_l,{label:e,onChange:o,...qd(n[1])})})})},ym={label:"",options:[]};function UV(){const{columnId:e,table:t}=wn,n=t?.grid;if(!n)return ym;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return ym;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function qV(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const GV=le(zu)({padding:0}),vm={Checkbox:GV},KV=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=UV(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),Zo(d)};return O.jsxs(la,{size:"small",children:[O.jsx(ca,{id:"column-filter-multiple-select-label",children:o}),O.jsxs(da,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:O.jsx(ks,{label:o}),renderValue:a=>a.join(", "),children:[O.jsxs(bl,{value:"All",children:[O.jsx(vm.Checkbox,{checked:n.indexOf("All")>-1}),O.jsx(zd,{primary:"All"})]},0),r.sort(qV).map(a=>O.jsxs(bl,{value:a,children:[O.jsx(vm.Checkbox,{checked:n.indexOf(a)>-1}),O.jsx(zd,{primary:a})]},a))]})]})},XV=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),Zo(i)}function o(r){const i={...t,2:r.target.value};e(i),Zo(i)}return O.jsxs(We.Fragment,{children:[O.jsx(Es,{label:oo.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),O.jsx(Es,{label:oo.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},wd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),Zo(i)}return O.jsx(Es,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},za=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),Zo(r)}return O.jsx(Es,{label:oo.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},ZV=({filterId:e,setValue:t,value:n})=>O.jsxs(We.Fragment,{children:[e===Ve.Boolean&&O.jsx(TA,{setValue:t,value:n}),e===Ve.TextEqual&&O.jsx(za,{setValue:t,value:n}),e===Ve.TextNotEqual&&O.jsx(za,{setValue:t,value:n}),e===Ve.TextContain&&O.jsx(za,{setValue:t,value:n}),e===Ve.TextNotContain&&O.jsx(za,{setValue:t,value:n}),e===Ve.MultipleSelect&&O.jsx(KV,{setValue:t,value:n}),e===Ve.NumberEqual&&O.jsx(wd,{label:oo.filter,setValue:t,value:n}),e===Ve.NumberFrom&&O.jsx(wd,{label:oo.from,setValue:t,value:n}),e===Ve.NumberTo&&O.jsx(wd,{label:oo.to,setValue:t,value:n}),e===Ve.NumberBetween&&O.jsx(XV,{setValue:t,value:n}),e===Ve.DateEqual&&O.jsx(bd,{label:oo.filter,setValue:t,value:n}),e===Ve.DateFrom&&O.jsx(bd,{label:oo.from,setValue:t,value:n}),e===Ve.DateTo&&O.jsx(bd,{label:oo.to,setValue:t,value:n}),e===Ve.DateBetween&&O.jsx(YV,{setValue:t,value:n})]}),QV=le(bl)({fontSize:"12px"}),bm={MenuItem:QV},JV=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>O.jsxs(la,{variant:"outlined",size:"small",children:[O.jsx(ca,{id:"reportType",children:e}),O.jsxs(da,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:u,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:d,width:l},children:[i&&O.jsx(bm.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>O.jsx(bm.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),ej={id:Ve.DateBetween,name:"Between"},tj={id:Ve.DateEqual,name:"Equal"},nj={id:Ve.DateFrom,name:"From"},oj={id:Ve.DateTo,name:"To"},rj={id:Ve.NumberBetween,name:"Between"},sj={id:Ve.NumberEqual,name:"Equal"},ij={id:Ve.NumberFrom,name:"From"},aj={id:Ve.NumberTo,name:"To"},lj={id:Ve.TextContain,name:"Contains"},cj={id:Ve.TextEqual,name:"Equal"},dj={id:Ve.TextNotContain,name:"Does not contain"},uj={id:Ve.TextNotEqual,name:"Not equal"},wm=[sj,ij,aj,rj],hj={[sn.Boolean]:[],[sn.Date]:[tj,nj,oj,ej],[sn.MultipleSelect]:[],[sn.Number]:wm,[sn.NumberFormatted]:wm,[sn.Text]:[lj,dj,cj,uj]},fj=({filterId:e,setFilterId:t})=>{const n=hj[wn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:l}=wn;if(!a||!l)return;const d=l.filter.args,u=i.target.value;d.columnFilters&&(l.filter.args={...d,columnFilters:{...d.columnFilters,[a]:{...d.columnFilters[a],filterId:u}}},t(u))}return o?O.jsx(JV,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},pj=le(Ls)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),mj={Wrapper:pj},gj=()=>{const[e,t]=We.useState(Ps),[n,o]=We.useState(Ve.TextContain),[r,i]=We.useState(!1);return wA(i),bA(r,o,t),r?O.jsx(We.Fragment,{children:O.jsxs(mj.Wrapper,{children:[O.jsx(fj,{filterId:n,setFilterId:o}),O.jsx(ZV,{filterId:n,setValue:t,value:e}),O.jsx(_A,{setIsOpened:i,setValue:t,value:e})]})}):null};function yj(e){We.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(yv);if(!n)return;const{x:o,y:r}=Cn;gv(n,o,r)},0)}return Cn.subscribe(t),()=>{Cn.unsubscribe(t)}},[])}const vj=le("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),bj=le("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),wj=le("span")({backgroundColor:"#1E456F"}),un={Ul:vj,Li:bj,Icon:wj},Cj=({clientId:e,clientName:t,setIsOpened:n})=>{const o=()=>{const r=Cn.table,i=r?.grid;if(!r||!i){n(!1);return}r.downloadManager.download(r,e,t),n(!1)};return O.jsxs(un.Li,{onClick:o,children:[O.jsx(un.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},Sj=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-link"}),"Group"]})};function _j(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const xj=({setIsOpened:e})=>{const t=Cn.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,ur.highlightAllColumns(o,t.id),e(!1)}return _j(t)?O.jsxs(We.Fragment,{children:[O.jsx(vl,{}),O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},Rj=({setIsOpened:e})=>{const t=Cn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},Tj=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},kj=({setIsOpened:e})=>{function t(){const n=Cn.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return O.jsxs(un.Li,{onClick:t,children:[O.jsx(un.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},Ej=({setIsOpened:e})=>{const t=Cn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?O.jsxs(un.Li,{onClick:n,children:[O.jsx(un.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},Pj=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=Cn.table;r?.printer.print(r,e,t),n(!1)}return O.jsxs(un.Li,{onClick:o,children:[O.jsx(un.Icon,{className:"sgi sgi-printer"}),"Print"]})},Dj=({clientId:e,clientName:t})=>{const[n,o]=We.useState(!1);return yj(o),n?O.jsx(We.Fragment,{children:O.jsxs(un.Ul,{children:[O.jsx(Pj,{clientId:e,clientName:t,setIsOpened:o}),O.jsx(kj,{setIsOpened:o}),O.jsx(Cj,{clientId:e,clientName:t,setIsOpened:o}),O.jsx(xj,{setIsOpened:o}),O.jsx(Rj,{setIsOpened:o}),O.jsx(Sj,{setIsOpened:o}),O.jsx(Ej,{setIsOpened:o}),O.jsx(Tj,{setIsOpened:o})]})}):null};exports.ColumnFilters=gj;exports.ColumnSorter=mv;exports.ContextMenu=Dj;exports.DecoratorColumnFilter=$N;exports.DecoratorFilter=tv;exports.DefaultPrinter=cv;exports.DeletedRowsFilter=PI;exports.EColumnFiltersGroup=sn;exports.ESortType=jo;exports.Filter=ev;exports.SlickTable=zN;exports.SlickgridTable=ON;exports.TotalCalculator=gA;exports.columnCheckboxSelector=MN;exports.columnIsEdited=NN;exports.commitCurrentEdit=uv;exports.formatterGroupTotals=dA;exports.getDisplayedRows=hv;exports.getNextId=dv;exports.handleHeaderButtons=nv;exports.headerButtons=ur;exports.openColumnFilter=OI;exports.openContextMenu=fv;exports.useListenIfTablesWereEdited=KN;
|